fix spelling errors

Change-Id: Ie79558d1430b00e218f0ec1faf5f7d2655e3f846
This commit is contained in:
melissaml 2018-02-12 02:26:14 +08:00
parent a7cf4ee4b5
commit 81f5f3cb02
2 changed files with 8 additions and 8 deletions

View File

@ -81,7 +81,7 @@ class Gbp_Config(object):
cmd_out = commands.getoutput(cmd)
_log.info(cmd_out)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
if self.cmd_error_check(cmd_out) == 0:
return 0
# If "create" cmd succeeded then parse the cmd_out to extract the UUID
@ -116,7 +116,7 @@ class Gbp_Config(object):
# Execute the policy-classifier-config-cmd
cmd_out = commands.getoutput(cmd)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
if self.cmd_error_check(cmd_out) == 0:
return 0
# If try clause succeeds for "create" cmd then parse the cmd_out
@ -179,7 +179,7 @@ class Gbp_Config(object):
cmd_out = commands.getoutput(cmd)
#_log.info(cmd_out)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
if self.cmd_error_check(cmd_out) == 0:
return 0
# If try clause succeeds for "create" cmd then parse the cmd_out to
@ -260,7 +260,7 @@ class Gbp_Config(object):
cmd_out = commands.getoutput(cmd)
#_log.info(cmd_out)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
if self.cmd_error_check(cmd_out) == 0:
return 0
return 1
@ -341,7 +341,7 @@ class Gbp_Config(object):
cmd_out = commands.getoutput(cmd)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
if self.cmd_error_check(cmd_out) == 0:
return 0
if cmd_val == 1:
@ -384,7 +384,7 @@ class Gbp_Config(object):
cmd_out = commands.getoutput(cmd)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
if self.cmd_error_check(cmd_out) == 0:
return 0
if cmd_val == 1:

View File

@ -73,7 +73,7 @@ class Gbp_Verify(object):
cmd_out = commands.getoutput(cmd)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
for err in self.err_strings:
if re.search('\\b%s\\b' % (err), cmd_out, re.I):
_log.info(cmd_out)
@ -127,7 +127,7 @@ class Gbp_Verify(object):
cmd_out = commands.getoutput(cmd)
# Catch for non-exception error strings, even though try clause
# succeded
# succeeded
for err in self.err_strings:
if re.search('\\b%s\\b' % (err), cmd_out, re.I):
_log.info(cmd_out)