This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.13
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.13 by this push:
     new 7d0fd9f  vr: fix password server run with empty gateway in isolated 
netw… (#3943)
7d0fd9f is described below

commit 7d0fd9fa3fbed8375a35b8721544be9a5bd05380
Author: Wei Zhou <[email protected]>
AuthorDate: Mon Mar 9 10:35:56 2020 +0100

    vr: fix password server run with empty gateway in isolated netw… (#3943)
---
 systemvm/debian/opt/cloud/bin/cs/CsAddress.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py 
b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
index 5b0c057..3eca4a7 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
@@ -583,9 +583,9 @@ class CsIP:
                         CsPasswdSvc(self.address['public_ip']).stop()
                 elif cmdline.is_master():
                     if method == "add":
-                        CsPasswdSvc(self.address['gateway'] + "," + 
self.address['public_ip']).start()
+                        CsPasswdSvc(self.get_gateway() + "," + 
self.address['public_ip']).start()
                     elif method == "delete":
-                        CsPasswdSvc(self.address['gateway'] + "," + 
self.address['public_ip']).stop()
+                        CsPasswdSvc(self.get_gateway() + "," + 
self.address['public_ip']).stop()
 
         if self.get_type() == "public" and self.config.is_vpc() and method == 
"add":
             if self.address["source_nat"]:

Reply via email to