rhtyd commented on pull request #425: URL: https://github.com/apache/cloudstack-primate/pull/425#issuecomment-645152148
@davidjumani it gets a bit complicated as the state itself is determined as follows, legacy code reference: ``` if (jsonObj.managedstate == "Managed") { jsonObj.state = jsonObj.allocationstate; //jsonObj.state == Enabled, Disabled } else { jsonObj.state = jsonObj.managedstate; //jsonObj.state == Unmanaged, PrepareUnmanaged, PrepareUnmanagedError } ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org