set save=true when consoleHost changes during VM sync#173
Conversation
|
how about the other diff in the morpheus-ui PR ? Plugin has this def consoleUsername = cloud.accountCredentialData?.username ?: cloud.getConfigProperty('username') ?: 'dunno' we are not defaulting to consoleUsername after tokenize. |
681c8b3 to
de2b9f7
Compare
@ckeskar23 Did you get a chance to have a look into this comment ? |
Yes, I tried to addressed this in last commit, please let me know if there is any feedback on that, thanks! |
After cloud sync, consoleHost appeared to be set in memory but was silently discarded. Subsequent console connections used a stale or missing host name because the updated value was never written to the database.
In VirtualMachineSync.updateMatchedVirtualMachines, the consoleHost field was assigned when it differed from the current value, but save was not set to true. Because the server is only persisted when save == true, the change was lost on every sync cycle.
morpheus-ui PR: #4352
Source Jira: MORPH-11002
UI commit: 0c7a1a6