Skip to content

Commit 71771c1

Browse files
author
Prasanna Santhanam
committed
fixing double calls to VM deploy
This fixes regression introduced in commit 2f40a90 that made duplicate calls to deployVirtualMachine. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 2b87261 commit 71771c1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • tools/marvin/marvin/integration/lib

tools/marvin/marvin/integration/lib/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,10 @@ def create(cls, apiclient, services, templateid=None, accountid=None,
298298
if "userdata" in services:
299299
cmd.userdata = base64.b64encode(services["userdata"])
300300

301-
virtual_machine = apiclient.deployVirtualMachine(cmd, method=method)
302-
303301
if group:
304302
cmd.group = group
305-
virtual_machine = apiclient.deployVirtualMachine(cmd)
303+
304+
virtual_machine = apiclient.deployVirtualMachine(cmd, method=method)
306305

307306
if startvm == False:
308307
virtual_machine.ssh_ip = virtual_machine.nic[0].ipaddress

0 commit comments

Comments
 (0)