Set the hypervisor back on a failed migrate
This commit is contained in:
		@@ -109,7 +109,8 @@ class VMInstance:
 | 
				
			|||||||
            if dest_conn == None:
 | 
					            if dest_conn == None:
 | 
				
			||||||
                raise
 | 
					                raise
 | 
				
			||||||
        except:
 | 
					        except:
 | 
				
			||||||
            print('>>> Failed to open connection to qemu+ssh://%s/system' % target)
 | 
					            print('>>> Failed to open connection to qemu+ssh://%s/system' % self.hypervisor)
 | 
				
			||||||
 | 
					            self.zk.set(self.zkey + '/hypervisor', self.thishypervisor.name.encode('ascii'))
 | 
				
			||||||
            self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
 | 
					            self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user