Handle None config for networkConfig

This would allow us to set NetworkConfig to OS::Heat::None

Change-Id: I695ac3a0565932334be31a5c7f162c926422bf6e
This commit is contained in:
Rabi Mishra
2020-09-30 17:52:59 +05:30
parent 7e2fd24d50
commit 3f93f147db

View File

@@ -229,6 +229,9 @@ class Config(object):
config_path = os.path.join(config_dir, role, "NetworkConfig")
# check if it's actual config or heat config_id
# this will be dropped once we stop using SoftwareConfig
if config is None:
continue
if isinstance(config, dict):
str_config = json.dumps(config)
else: