CS-15138: strip the string before compare

This commit is contained in:
anthony 2012-05-29 11:22:17 -07:00 committed by Devdeep Singh
parent a82ad3b3bc
commit 70c84badab
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,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)