Bug 266 fixed: dataenter-associate --type aws requires user and password 14/1814/2
authorVance Shipley <vances@sigscale.org>
Thu, 11 May 2017 21:04:53 +0000 (02:34 +0530)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 15 May 2017 09:27:24 +0000 (10:27 +0100)
Signed-off-by: Vance Shipley <vances@sigscale.org>
osm_ro/nfvo.py

index 06af537..7646994 100644 (file)
@@ -2807,7 +2807,7 @@ def delete_datacenter(mydb, datacenter):
 
 def associate_datacenter_to_tenant(mydb, nfvo_tenant, datacenter, vim_tenant_id=None, vim_tenant_name=None, vim_username=None, vim_password=None, config=None):
     #get datacenter info
-    datacenter_id, myvim = get_datacenter_by_name_uuid(mydb, None, datacenter)
+    datacenter_id, myvim = get_datacenter_by_name_uuid(mydb, None, datacenter, vim_user=vim_username, vim_passwd=vim_password)
     datacenter_name = myvim["name"]
 
     create_vim_tenant = True if not vim_tenant_id and not vim_tenant_name else False