Skip to content

Commit

Permalink
Merge pull request #219 from liulinC/private/linl/xs9
Browse files Browse the repository at this point in the history
CP-48879: Rename async arg to async_op
  • Loading branch information
liulinC authored Apr 18, 2024
2 parents d560667 + cfe14e6 commit 454d17d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autocertkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1947,11 +1947,11 @@ def config_arp(session, vms):
'mode': get_context_arp_mode()})


def shutdown_droid_vms(session, vms, async=True):
def shutdown_droid_vms(session, vms, async_op=True):
"""Shutdown VMs"""

log.debug("Shutdown required VMs")
if async:
if async_op:
try:
run_xapi_async_tasks(session,
[lambda x=vm_ref: session.xenapi.Async.VM.shutdown(x)
Expand All @@ -1965,11 +1965,11 @@ def shutdown_droid_vms(session, vms, async=True):
session.xenapi.VM.shutdown(i)


def start_droid_vms(session, vms, async=True):
def start_droid_vms(session, vms, async_op=True):
"""Start VMs"""

log.debug("Starting required VMs")
if async:
if async_op:
try:
# Temporary setting time out to 3 mins to work around CA-146164.
# The fix requires hotfixes, hence keeping this work-around.
Expand Down

0 comments on commit 454d17d

Please sign in to comment.