instance loses DNS hostname when re-naming to same name
The following discussion from !913 (merged) should be addressed:
-
@cmart started a discussion: (+2 comments)
...wait, what happens if we try to rename to the same name?
Okay, this didn't cause an error, but it appears to just delete the hostname, rather than re-creating it. Maybe we should prevent folks from saving an instance with the same name? But that's probably out of scope here. We can log an issue to do it later.
Possible fixes:
- If user is renaming an instance, and the name is not actually changed, don't allow them to save the new name, only cancel.
- Do the right thing with DNS hostnames if user renames an instance to the same name.