mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 21:18:04 +03:00
domain: Don't rename domain if newname isn't different
This commit is contained in:
parent
aaabb44ac7
commit
f3127e0029
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user