Browse Source

ffho_net: Fix silly coding bug is get_ospf_interface_config()

    | for attr, val in ospf_config_pillar:
    |  ValueError: too many values to unpack

    This obviously needs to be ospf_config_pillar.items ()

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 years ago
parent
commit
9c9b79426e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      _modules/ffho_net.py

+ 1 - 1
_modules/ffho_net.py

@@ -1056,7 +1056,7 @@ def get_ospf_interface_config (node_config, grains_id):
 			continue
 
 		# Explicit OSPF interface configuration parameters take precendence over generated ones
-		for attr, val in ospf_config_pillar:
+		for attr, val in ospf_config_pillar.items ():
 			ospf_config[attr] = val
 
 		# Convert boolean values to 'yes' / 'no' string values