Merge "Complete Feature 6297"
authorAdam Israel <adam.israel@canonical.com>
Mon, 27 May 2019 13:28:13 +0000 (15:28 +0200)
committerGerrit Code Review <root@osm.etsi.org>
Mon, 27 May 2019 13:28:13 +0000 (15:28 +0200)
n2vc/vnf.py
tests/base.py

index 0d9530e..11ce3c8 100644 (file)
@@ -457,8 +457,8 @@ class N2VC:
             if all(k in machine_spec for k in ['host', 'user']):
                 # Enlist an existing machine as a Juju unit
                 machine = await model.add_machine(spec='ssh:{}@{}:{}'.format(
-                    machine_spec['user'],
-                    machine_spec['host'],
+                    machine_spec['username'],
+                    machine_spec['hostname'],
                     self.GetPrivateKeyPath(),
                 ))
                 to = machine.id
index 912eab9..663e89a 100644 (file)
@@ -740,8 +740,8 @@ class TestN2VC(object):
             )
 
             machine_spec = {
-                'host': hostname,
-                'user': 'ubuntu',
+                'hostname': hostname,
+                'username': 'ubuntu',
             }
 
         await self.n2vc.DeployCharms(