domain: Don't rename domain if newname isn't different

This commit is contained in:
coreyberla 2021-07-31 16:35:34 -04:00 committed by Cole Robinson
parent aaabb44ac7
commit f3127e0029

View File

@ -540,6 +540,8 @@ class vmmDomain(vmmLibvirtObject):
##############################
def rename_domain(self, new_name):
if new_name == self.get_name():
return
Guest.validate_name(self.conn.get_backend(), str(new_name))
new_nvram = None