Skip to content
Snippets Groups Projects
Commit 2e52801d authored by Brandon Heller's avatar Brandon Heller
Browse files

Fix IP printing exception

parent b426d24e
No related branches found
No related tags found
No related merge requests found
......@@ -265,8 +265,10 @@ def intfIsUp( self, intf ):
return 'UP' in self.cmd( 'ifconfig ' + self.intfs[ 0 ] )
# Other methods
def __str__( self ):
result = self.name
result += ": IP=" + self.IP() + " intfs=" + ','.join( self.intfs )
result = self.name + ":"
if self.IP():
result += " IP=" + self.IP()
result += " intfs=" + ','.join( self.intfs )
result += " waiting=" + `self.waiting`
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment