commit | f5478bf843d45f8cc053576cc78beb18c7ac8fc2 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Wed Feb 10 17:24:22 2016 -0800 |
committer | Scott Baker <smbaker@gmail.com> | Wed Feb 10 17:24:22 2016 -0800 |
tree | 09b19d967c194343eb6e25c5fa6fe257f8072428 | |
parent | ac785432a11dda548dfc36ca47c74f0ff012c82d [diff] |
use management ip for ssh_ip if management network is used
diff --git a/xos/core/models/instance.py b/xos/core/models/instance.py index 86774b0..7f13eb8 100644 --- a/xos/core/models/instance.py +++ b/xos/core/models/instance.py
@@ -186,6 +186,9 @@ # return an address that the synchronizer can use to SSH to the instance def get_ssh_ip(self): + management=self.get_network_ip("management") + if management: + return management return self.get_network_ip("nat") @staticmethod