Use get() for newer keys in client
This commit is contained in:
parent
a66449541d
commit
9b51fe9f10
|
@ -430,7 +430,7 @@ def format_list_osd(config, osd_list):
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if osd_information["is_split"]:
|
if osd_information.get("is_split") is not None:
|
||||||
osd_information["device"] = f"{osd_information['device']} [s]"
|
osd_information["device"] = f"{osd_information['device']} [s]"
|
||||||
|
|
||||||
# Deal with the size to human readable
|
# Deal with the size to human readable
|
||||||
|
|
|
@ -1717,7 +1717,7 @@ def format_info(config, domain_information, long_output):
|
||||||
"{}Max live downtime:{} {}".format(
|
"{}Max live downtime:{} {}".format(
|
||||||
ansiprint.purple(),
|
ansiprint.purple(),
|
||||||
ansiprint.end(),
|
ansiprint.end(),
|
||||||
f"{domain_information['migration_max_downtime']} ms",
|
f"{domain_information.get('migration_max_downtime')} ms",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue