瀏覽代碼

Python2->3 Iteritems Fix

chain for loop was using iteritems which isn't available in Python3
anymore and was throwing an exception when run with Salt on Python3.
master
Nate Bohman 6 年之前
父節點
當前提交
8188337922
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      iptables/rules.sls

+ 1
- 1
iptables/rules.sls 查看文件

@@ -2,7 +2,7 @@
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}

{%- set chains = service.get('chain', {}).keys() %}
{%- for chain_name, chain in service.get('chain', {}).iteritems() %}
{%- for chain_name, chain in service.get('chain', {}).items() %}

{%- set tables = [] %}
{%- for rule in chain.get('rules', []) %}

Loading…
取消
儲存