Reformat recent changes with Black

This commit is contained in:
Joshua Boniface 2021-11-06 03:27:07 -04:00
parent 73e3746885
commit 16544227eb
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") retcode, stdout, stderr = pvc_common.run_os_command("which mkswap")
if retcode: if retcode:
raise ProvisioningError( raise ProvisioningError(
"Failed to find binary for mkswap: {}".format( "Failed to find binary for mkswap: {}".format(stderr)
stderr
)
) )
else: else:
retcode, stdout, stderr = pvc_common.run_os_command( retcode, stdout, stderr = pvc_common.run_os_command(

View File

@ -164,9 +164,7 @@ class CephOSDInstance(object):
raise Exception raise Exception
# 4b. Activate the OSD # 4b. Activate the OSD
logger.out( logger.out("Activating new OSD disk with ID {}".format(osd_id), state="i")
"Activating new OSD disk with ID {}".format(osd_id), state="i"
)
retcode, stdout, stderr = common.run_os_command( retcode, stdout, stderr = common.run_os_command(
"ceph-volume lvm activate --bluestore {osdid} {osdfsid}".format( "ceph-volume lvm activate --bluestore {osdid} {osdfsid}".format(
osdid=osd_id, osdfsid=osd_fsid 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( "RBD lock does not belong to this host (lock owner: {}): freeing this lock would be unsafe, aborting".format(
lock["address"].split(":")[0] lock["address"].split(":")[0]
), ),
state="e" state="e",
) )
zkhandler.write( zkhandler.write(
[ [