浏览代码

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 年之前
父节点
当前提交
9c9b79426e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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