Fix the status returned by validate_account_creds 36/5536/1
authorAdam Israel <adam.israel@canonical.com>
Fri, 6 Oct 2017 05:43:17 +0000 (01:43 -0400)
committerAdam Israel <adam.israel@canonical.com>
Fri, 6 Oct 2017 05:43:17 +0000 (01:43 -0400)
validate_account_creds was always returning "unknown" instead of the actual status.

Signed-off-by: Adam Israel <adam.israel@canonical.com>
common/python/rift/mano/config_agent/operdata.py

index e89a823..49f5b03 100644 (file)
@@ -81,8 +81,8 @@ class JujuClient(object):
             loop.close()
 
         return RwConfigAgentYang.YangData_RwProject_Project_ConfigAgent_Account_ConnectionStatus(
-            status="unknown",
-            details="Connection status lookup not started"
+            status=status,
+            details=details,
         )