harikrishna-patnala commented on code in PR #6202:
URL: https://github.com/apache/cloudstack/pull/6202#discussion_r877781801


##########
server/src/main/java/com/cloud/network/element/CloudZonesNetworkElement.java:
##########
@@ -158,6 +158,19 @@ private VmDataCommand generateVmDataCommand(String 
vmPrivateIpAddress, String us
         cmd.addVmData("metadata", "local-hostname", vmName);
         cmd.addVmData("metadata", "public-ipv4", guestIpAddress);
         cmd.addVmData("metadata", "public-hostname", guestIpAddress);
+
+        if(userDataDetails != null && !userDataDetails.isEmpty()) {
+            userDataDetails = userDataDetails.substring(1, 
userDataDetails.length()-1);

Review Comment:
   userdatadetails is saved a map (eg. {key1=test1, key2=test2}) so are 
removing those braces here. Do you think it has to be removed while saving 
itself ?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to