From: tierno Date: Wed, 25 Jan 2017 13:27:20 +0000 (+0100) Subject: fixes 168. openstack cloud-config error X-Git-Tag: v1.1.0~14 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F1013%2F2;p=osm%2FRO.git fixes 168. openstack cloud-config error Change-Id: I8879218073c29088f08106bc280656a380275aef Signed-off-by: tierno --- diff --git a/vimconn_openstack.py b/vimconn_openstack.py index eaeae92f..61d4b438 100644 --- a/vimconn_openstack.py +++ b/vimconn_openstack.py @@ -761,7 +761,7 @@ class vimconnector(vimconn.vimconnector): userdata_dict["ssh-authorized-keys"] = cloud_config["key-pairs"] userdata_dict["users"] = [{"default": None, "ssh-authorized-keys": cloud_config["key-pairs"] }] if cloud_config.get("users"): - if "users" not in cloud_config: + if "users" not in userdata_dict: userdata_dict["users"] = [ "default" ] for user in cloud_config["users"]: user_info = {