Fix bug in regex match for snapshots
This commit is contained in:
parent
822cf53a49
commit
97a3dafa3b
|
@ -1267,7 +1267,7 @@ def get_list_snapshot(zk_conn, pool, volume, limit):
|
||||||
for snapshot in full_snapshot_list:
|
for snapshot in full_snapshot_list:
|
||||||
valid_snapshot = False
|
valid_snapshot = False
|
||||||
if limit:
|
if limit:
|
||||||
if re.match(limit, snapshot['snapshot_id']) != None:
|
if re.match(limit, snapshot) != None:
|
||||||
valid_snapshot = True
|
valid_snapshot = True
|
||||||
else:
|
else:
|
||||||
valid_snapshot = True
|
valid_snapshot = True
|
||||||
|
|
Loading…
Reference in New Issue