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