X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/2d2b9463275d1272e23fb2fe7972b7e5b3a8d471..b63f52dca1ed8503795e11b14af5e5cae54f74a2:/code/main.py diff --git a/code/main.py b/code/main.py index 908d7cd..d9cc14c 100755 --- a/code/main.py +++ b/code/main.py @@ -379,6 +379,9 @@ def modifyDict(username, state, fields): update_acl = True if hasattr(validate, 'name'): machine.name = validate.name + for n in machine.nics: + if n.hostname == oldname: + n.hostname = validate.name if hasattr(validate, 'description'): machine.description = validate.description if hasattr(validate, 'admin') and validate.admin != machine.administrator: