]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Change status to _status everywhere (fix regression)
authorDan Mick <dan.mick@inktank.com>
Thu, 10 Apr 2014 21:53:10 +0000 (14:53 -0700)
committerDan Mick <dan.mick@inktank.com>
Thu, 10 Apr 2014 21:53:10 +0000 (14:53 -0700)
0550dd119150acf8f7b7da2f32b3938c910c3c99 didn't add '_' to 'status'
everywhere it was needed.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
teuthology/lock.py

index 8dd2ab42e3301d5b60ffa4366857a03d14625309..589dfabfb21c16c33282e52d7af1b57d60c7984f 100644 (file)
@@ -207,20 +207,20 @@ def main(ctx):
                 ctx.owner = misc.get_user()
             if ctx.owner is not None:
                 statuses = [_status for _status in statuses
-                            if status['locked_by'] == ctx.owner]
+                            if _status['locked_by'] == ctx.owner]
             if ctx.status is not None:
                 statuses = [_status for _status in statuses
-                            if status['up'] == (ctx.status == 'up')]
+                            if _status['up'] == (ctx.status == 'up')]
             if ctx.locked is not None:
                 statuses = [_status for _status in statuses
-                            if status['locked'] == (ctx.locked == 'true')]
+                            if _status['locked'] == (ctx.locked == 'true')]
             if ctx.desc is not None:
                 statuses = [_status for _status in statuses
-                            if status['description'] == ctx.desc]
+                            if _status['description'] == ctx.desc]
             if ctx.desc_pattern is not None:
                 statuses = [_status for _status in statuses
-                            if status['description'] is not None and
-                            status['description'].find(ctx.desc_pattern) >= 0]
+                            if _status['description'] is not None and
+                            _status['description'].find(ctx.desc_pattern) >= 0]
             if ctx.list:
                     print json.dumps(statuses, indent=4)