Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dependency on netifaces module are now only needed if RightScale.whoa…

…mi() is called.
  • Loading branch information...
commit 6cbee6957882de5209d949949697e34021be0f44 1 parent 822d5f0
silver authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/rightscale/RightScale.py
View
2  src/rightscale/RightScale.py
@@ -16,7 +16,6 @@
# third party
import httplib2
-import netifaces
#httplib2.debuglevel=1
@@ -154,6 +153,7 @@ def whoami(self):
# This isn't likely the most optimal way to find the server, but
# it's not bad either. We could query by aws_id which would only require 1
# query, not 2n where n is the number of addresses on the system.
+ import netifaces
self.ensure_authenticated()
for interface in netifaces.interfaces():
addresses = netifaces.ifaddresses(interface)

0 comments on commit 6cbee69

Please sign in to comment.
Something went wrong with that request. Please try again.