CS-15138: strip the string before compare

fixed

reviewed-by : Kelvin
This commit is contained in:
anthony 2012-05-29 11:22:17 -07:00
parent fe5965cb46
commit 7d9624d0b7
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ def setLinkLocalIP(session, args):
except:
return 'can not cat network.conf'
if result.lower() == "bridge":
if result.lower().strip() == "bridge":
try:
cmd = ["brctl", "addbr", brName]
txt = util.pread2(cmd)