CLOUDSTACK-2115: remove the trailing '\n' to get correct XS network mode

This commit is contained in:
Anthony Xu 2013-05-14 17:52:10 -07:00
parent 26cefdcfac
commit 1518e7ee43

View File

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