mirror of https://github.com/apache/cloudstack.git
CS-15138: strip the string before compare
This commit is contained in:
parent
a82ad3b3bc
commit
70c84badab
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue