weizhouapache commented on code in PR #10571:
URL: https://github.com/apache/cloudstack/pull/10571#discussion_r2000454258


##########
setup/bindir/cloud-setup-databases.in:
##########
@@ -328,7 +328,7 @@ for example:
     def grabSystemInfo(self):
         def getIpAddr():
             try:
-                ip = socket.gethostbyname(socket.gethostname())
+                ip = socket.gethostbyname(socket.gethostname() + ".local")

Review Comment:
   @DaanHoogland 
   yes, better to test as much OSes as possible.
   
   it could be verified quickly by python
   ```
   import socket
   socket.gethostbyname(socket.gethostname())
   socket.gethostbyname(socket.gethostname() + ".local")
   ```



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