From 7ace6faf03350236447f49ea6435e271a3f84aae Mon Sep 17 00:00:00 2001 From: Dominik Fleischmann Date: Mon, 29 Jun 2020 16:16:28 +0200 Subject: [PATCH] Write to DB when creating K8s Proxy Charm This commit adds a call to _write_ee_id_db so that the DB is updated the same way as in LXD Proxy Charms. Change-Id: I7ecd815b1a5fbbb0b0222300da39ca99cb6ae584 Signed-off-by: Dominik Fleischmann --- n2vc/n2vc_juju_conn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/n2vc/n2vc_juju_conn.py b/n2vc/n2vc_juju_conn.py index ed1250d..07c3903 100644 --- a/n2vc/n2vc_juju_conn.py +++ b/n2vc/n2vc_juju_conn.py @@ -577,6 +577,9 @@ class N2VCJujuConnector(N2VCConnector): application_name=application_name, machine_id="k8s", ) + + self._write_ee_id_db(db_dict=db_dict, ee_id=ee_id) + return ee_id async def get_ee_ssh_public__key( -- 2.25.1