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")
|
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(
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue