few small fixes to syntax errors

This commit is contained in:
cody burkard
2014-08-01 11:00:07 -07:00
parent 4b65110e4d
commit a3d51b77e9
5 changed files with 25 additions and 23 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ class Intf( object ):
def updateAddr( self ):
"""Return IP address and MAC address based on ifconfig.
instead of updating ip and mac separately,
use one ifconfig call to do it simultaneously""""
use one ifconfig call to do it simultaneously"""
ifconfig = self.ifconfig()
ips = self._ipMatchRegex.findall( ifconfig )
macs = self._macMatchRegex.findall( ifconfig )
@@ -118,7 +118,7 @@ class Intf( object ):
if setUp:
cmdOutput = self.ifconfig( 'up' )
if cmdOutput:
error( "Error setting %s up: %s " % ( self.name, cmdOutput )
error( "Error setting %s up: %s " % ( self.name, cmdOutput ) )
return False
else:
return True