Fix bug 957: Return pubkey properly 57/8357/1 v7.0.0 v7.0.0rc1
authorDavid Garcia <david.garcia@canonical.com>
Mon, 9 Dec 2019 17:50:03 +0000 (18:50 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Mon, 9 Dec 2019 17:50:03 +0000 (18:50 +0100)
Change-Id: I1265e972ee0a085733c5597dc2c793021713ee62
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/n2vc_juju_conn.py

index 65dac3e..7c55af7 100644 (file)
@@ -439,7 +439,7 @@ class N2VCJujuConnector(N2VCConnector):
             raise e
 
         # return public key if exists
-        return output
+        return output["pubkey"] if "pubkey" in output else output
 
     async def add_relation(
         self,