From 9ae8fa51d23e2373a7e25187b16401341051575e Mon Sep 17 00:00:00 2001 From: David Garcia Date: Mon, 9 Dec 2019 18:50:03 +0100 Subject: [PATCH] Fix bug 957: Return pubkey properly Change-Id: I1265e972ee0a085733c5597dc2c793021713ee62 Signed-off-by: David Garcia --- n2vc/n2vc_juju_conn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/n2vc/n2vc_juju_conn.py b/n2vc/n2vc_juju_conn.py index 65dac3e..7c55af7 100644 --- a/n2vc/n2vc_juju_conn.py +++ b/n2vc/n2vc_juju_conn.py @@ -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, -- 2.25.1