Catch another remove list
This commit is contained in:
		@@ -98,7 +98,11 @@ class VMInstance:
 | 
				
			|||||||
            self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
 | 
					            self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
 | 
				
			||||||
            self.stop_vm()
 | 
					            self.stop_vm()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.thishypervisor.domain_list.remove(self.domuuid)
 | 
					        try:
 | 
				
			||||||
 | 
					            self.thishypervisor.domain_list.remove(self.domuuid)
 | 
				
			||||||
 | 
					        except ValueError:
 | 
				
			||||||
 | 
					            pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        print('Migrated successfully')
 | 
					        print('Migrated successfully')
 | 
				
			||||||
        dest_conn.close()
 | 
					        dest_conn.close()
 | 
				
			||||||
   
 | 
					   
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								pvc.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								pvc.py
									
									
									
									
									
								
							@@ -38,5 +38,5 @@ def migrate_domain(domuuid, target):
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define_domain('/var/home/joshua/debian9.xml')
 | 
					#define_domain('/var/home/joshua/debian9.xml')
 | 
				
			||||||
#migrate_domain('b1dc4e21-544f-47aa-9bb7-8af0bc443b78', 'test1.i.bonilan.net')
 | 
					migrate_domain('b1dc4e21-544f-47aa-9bb7-8af0bc443b78', 'test1.i.bonilan.net')
 | 
				
			||||||
migrate_domain('b1dc4e21-544f-47aa-9bb7-8af0bc443b78', 'test2.i.bonilan.net')
 | 
					#migrate_domain('b1dc4e21-544f-47aa-9bb7-8af0bc443b78', 'test2.i.bonilan.net')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user