diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-04-03 16:37:04 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-04-25 16:02:20 +0200 |
commit | eb3350e4b04b7b533afc1f9b6a2639560fd46a5e (patch) | |
tree | c308c7b3d3b3a7070f8a93ec3da9edddde53a99a /qa | |
parent | 7436542937107debb4be0479e035e62421370fd0 (diff) | |
download | ceph-eb3350e4b04b7b533afc1f9b6a2639560fd46a5e.tar.gz |
test_mon_config_key.py: fix some more naming of local vars
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/workunits/mon/test_mon_config_key.py b/qa/workunits/mon/test_mon_config_key.py index 75db4a27faf..037d5d13368 100755 --- a/qa/workunits/mon/test_mon_config_key.py +++ b/qa/workunits/mon/test_mon_config_key.py @@ -356,7 +356,7 @@ def main(): run_cmd(cmd, expects=expected) if sop == 'existing': try: - f = open(file_path, 'r+') + temp_file = open(file_path, 'r+') except IOError as err: if err.errno == errno.ENOENT: assert CONFIG_EXISTING[key] == 0, \ @@ -367,10 +367,10 @@ def main(): 'some error occurred: {e}'.format(e=err) cnt = 0 while True: - l = f.read() - if l == '': + read_data = temp_file.read() + if read_data == '': break - cnt += len(l) + cnt += len(read_data) assert cnt == CONFIG_EXISTING[key], \ 'wrong size from store for key \'{k}\': {sz}, expected {es}'.format( k=key,sz=cnt,es=CONFIG_EXISTING[key]) |