Reformat recent changes with Black
This commit is contained in:
parent
23b1501f40
commit
78faa90139
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue