diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-04-03 16:09:53 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-04-25 15:57:20 +0200 |
commit | c792ea670795b2032003f25d8a024e172933070f (patch) | |
tree | 30012a7abf626c7714a52b81dfaa558ba546d92b /qa | |
parent | 912bb82c726faf753ba87ad9356c6448399362ac (diff) | |
download | ceph-c792ea670795b2032003f25d8a024e172933070f.tar.gz |
test_mon_config_key.py: fix naming of local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/workunits/mon/test_mon_config_key.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qa/workunits/mon/test_mon_config_key.py b/qa/workunits/mon/test_mon_config_key.py index 5af5fdfb951..2356b2cea0a 100755 --- a/qa/workunits/mon/test_mon_config_key.py +++ b/qa/workunits/mon/test_mon_config_key.py @@ -65,8 +65,8 @@ def run_cmd(cmd, expects=0): if expects < 0: expects = -expects - cmdLOG = LOG.getChild('run_cmd') - cmdLOG.debug('{fc}'.format(fc=' '.join(full_cmd))) + cmdlog = LOG.getChild('run_cmd') + cmdlog.debug('{fc}'.format(fc=' '.join(full_cmd))) proc = subprocess.Popen(full_cmd, stdout=subprocess.PIPE, @@ -79,24 +79,24 @@ def run_cmd(cmd, expects=0): (out, err) = proc.communicate() if out is not None: stdout += out.split('\n') - cmdLOG.debug('stdout: {s}'.format(s=out)) + cmdlog.debug('stdout: {s}'.format(s=out)) if err is not None: stdout += err.split('\n') - cmdLOG.debug('stderr: {s}'.format(s=err)) + cmdlog.debug('stderr: {s}'.format(s=err)) except ValueError: ret = proc.wait() break if ret != expects: - cmdLOG.error('cmd > {cmd}'.format(cmd=full_cmd)) - cmdLOG.error('expected return \'{expected}\' got \'{got}\''.format( + cmdlog.error('cmd > {cmd}'.format(cmd=full_cmd)) + cmdlog.error('expected return \'{expected}\' got \'{got}\''.format( expected=expects,got=ret)) - cmdLOG.error('stdout') + cmdlog.error('stdout') for i in stdout: - cmdLOG.error('{x}'.format(x=i)) - cmdLOG.error('stderr') + cmdlog.error('{x}'.format(x=i)) + cmdlog.error('stderr') for i in stderr: - cmdLOG.error('{x}'.format(x=i)) + cmdlog.error('{x}'.format(x=i)) #end run_cmd |