Write to DB when creating K8s Proxy Charm 30/9230/1
authorDominik Fleischmann <dominik.fleischmann@canonical.com>
Mon, 29 Jun 2020 14:16:28 +0000 (16:16 +0200)
committergarciadav <david.garcia@canonical.com>
Tue, 30 Jun 2020 10:17:42 +0000 (12:17 +0200)
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 <dominik.fleischmann@canonical.com>
(cherry picked from commit 7ace6faf03350236447f49ea6435e271a3f84aae)

n2vc/n2vc_juju_conn.py

index ed1250d..07c3903 100644 (file)
@@ -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(