From 01d0bf5f73c3bd9d90199b02b76c156a4c9b2b40 Mon Sep 17 00:00:00 2001 From: tierno Date: Wed, 25 Jan 2017 14:27:20 +0100 Subject: [PATCH] fixes 168. openstack cloud-config error Change-Id: I8879218073c29088f08106bc280656a380275aef Signed-off-by: tierno --- vimconn_openstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { -- 2.25.1