diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/module_utils/network/vyos/config/firewall_rules/firewall_rules.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/module_utils/network/vyos/config/firewall_rules/firewall_rules.py b/plugins/module_utils/network/vyos/config/firewall_rules/firewall_rules.py index ffc642f..fd5a4f5 100644 --- a/plugins/module_utils/network/vyos/config/firewall_rules/firewall_rules.py +++ b/plugins/module_utils/network/vyos/config/firewall_rules/firewall_rules.py @@ -779,8 +779,9 @@ class Firewall_rules(ConfigBase): key = "group" group = w[attr].get(key) or {} if group: - if h and key in h[attr].keys(): - h_group = h[attr].get(key) or {} + h_group = {} + if h and h.get(attr) and key in h[attr].keys(): + h_group = h[attr].get(key) for item, val in iteritems(group): if val: if ( |