Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

merge

  • Loading branch information...
commit 92bc06a9de2a4c35d264ac39f02931399967e34e 2 parents 68b430f + f7a2148
@jeffjapan jeffjapan authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 openstack/compute/servers.py
View
7 openstack/compute/servers.py
@@ -112,8 +112,11 @@ def private_ip(self):
"""
Shortcut to get this server's primary private IP address.
"""
- return self.addresses['private'][0]
-
+ if self.addresses['private']:
+ return self.addresses['private'][0]
+ else:
+ return u''
+
class ServerManager(base.ManagerWithFind):
resource_class = Server
Please sign in to comment.
Something went wrong with that request. Please try again.