Properly handle missing domain_name fail
This commit is contained in:
		@@ -1346,8 +1346,8 @@ def collect_vm_stats(queue):
 | 
				
			|||||||
            domain_memory_stats = domain.memoryStats()
 | 
					            domain_memory_stats = domain.memoryStats()
 | 
				
			||||||
            domain_cpu_stats = domain.getCPUStats(True)[0]
 | 
					            domain_cpu_stats = domain.getCPUStats(True)[0]
 | 
				
			||||||
        except Exception as e:
 | 
					        except Exception as e:
 | 
				
			||||||
            if debug:
 | 
					            if debug and domain is defined:
 | 
				
			||||||
                print("Failed getting VM information for {}: {}".format(domain_name, e))
 | 
					                print("Failed getting VM information for {}: {}".format(domain.name(), e))
 | 
				
			||||||
            continue
 | 
					            continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Ensure VM is present in the domain_list
 | 
					        # Ensure VM is present in the domain_list
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user