Fix bug in regex match for snapshots

This commit is contained in:
Joshua Boniface 2019-06-19 15:24:04 -04:00
parent 822cf53a49
commit 97a3dafa3b
1 changed files with 1 additions and 1 deletions

View File

@ -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