Reformat recent changes with Black

This commit is contained in:
Joshua Boniface 2021-11-06 03:27:07 -04:00
parent 23b1501f40
commit 78faa90139
3 changed files with 3 additions and 7 deletions

View File

@ -1489,9 +1489,7 @@ def create_vm(
retcode, stdout, stderr = pvc_common.run_os_command("which mkswap")
if retcode:
raise ProvisioningError(
"Failed to find binary for mkswap: {}".format(
stderr
)
"Failed to find binary for mkswap: {}".format(stderr)
)
else:
retcode, stdout, stderr = pvc_common.run_os_command(

View File

@ -164,9 +164,7 @@ class CephOSDInstance(object):
raise Exception
# 4b. Activate the OSD
logger.out(
"Activating new OSD disk with ID {}".format(osd_id), state="i"
)
logger.out("Activating new OSD disk with ID {}".format(osd_id), state="i")
retcode, stdout, stderr = common.run_os_command(
"ceph-volume lvm activate --bluestore {osdid} {osdfsid}".format(
osdid=osd_id, osdfsid=osd_fsid

View File

@ -1006,7 +1006,7 @@ class VMInstance(object):
"RBD lock does not belong to this host (lock owner: {}): freeing this lock would be unsafe, aborting".format(
lock["address"].split(":")[0]
),
state="e"
state="e",
)
zkhandler.write(
[