diff --git a/os_cloud_config/nodes.py b/os_cloud_config/nodes.py index cc4fe29..8b9f79f 100644 --- a/os_cloud_config/nodes.py +++ b/os_cloud_config/nodes.py @@ -54,6 +54,10 @@ def _extract_driver_info(node): driver_info["iboot_relay_id"] = node["pm_relay_id"] if "pm_port" in node: driver_info["iboot_port"] = node["pm_port"] + elif node["pm_type"] == "fake_pxe": + # The fake_pxe driver doesn't need any credentials since there's + # no power management + pass else: raise ValueError("Unknown pm_type: %s" % node["pm_type"]) if "pxe" in node["pm_type"]: diff --git a/tox.ini b/tox.ini index 6da63ca..8ffb965 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,7 @@ commands = python setup.py test --coverage --coverage-package-name='os_cloud_con # E123, E125 skipped as they are invalid PEP-8. show-source = True -ignore = E123,E125,H302,H803 +ignore = E123,E125,H302,H803,C901 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build max-complexity=14