commit | ea455d181d0cdd7cc0a25cf3ed4ec402f3b7604c | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Aug 18 23:02:11 2015 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Tue Aug 18 23:02:11 2015 -0700 |
tree | 996815f5b9045d3afee7e014c199edca6a7c35b6 | |
parent | deb5f7b31883fc3633d691f8ae5df512dc33fdab [diff] |
tolerate networksliver not having ip
diff --git a/xos/core/models/sliver.py b/xos/core/models/sliver.py index 7cdff08..7df125e 100644 --- a/xos/core/models/sliver.py +++ b/xos/core/models/sliver.py
@@ -139,7 +139,8 @@ def all_ips(self): ips={} for ns in self.networkslivers.all(): - ips[ns.network.name] = ns.ip + if ns.ip: + ips[ns.network.name] = ns.ip return ips def all_ips_string(self):