From 6dc29904c67da8cb147d91ee9a4ad0af8a55f8b9 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 10 Apr 2014 14:53:10 -0700 Subject: [PATCH] Change status to _status everywhere (fix regression) 0550dd119150acf8f7b7da2f32b3938c910c3c99 didn't add '_' to 'status' everywhere it was needed. Signed-off-by: Dan Mick --- teuthology/lock.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/teuthology/lock.py b/teuthology/lock.py index 8dd2ab42e3..589dfabfb2 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -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) -- 2.39.5