Fix snapshot lists
This commit is contained in:
		@@ -1297,11 +1297,11 @@ def get_list_snapshot(zk_conn, pool, volume, limit, is_fuzzy=True):
 | 
				
			|||||||
        if limit:
 | 
					        if limit:
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                if re.match(limit, snapshot):
 | 
					                if re.match(limit, snapshot):
 | 
				
			||||||
                    snapshot_list.append(getVolumeInformation(zk_conn, pool_name, volume_name, snapshot_name))
 | 
					                    snapshot_list.append(snapshot)
 | 
				
			||||||
            except Exception as e:
 | 
					            except Exception as e:
 | 
				
			||||||
                return False, 'Regex Error: {}'.format(e)
 | 
					                return False, 'Regex Error: {}'.format(e)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            snapshot_list.append(getVolumeInformation(zk_conn, pool_name, volume_name, snapshot_name))
 | 
					            snapshot_list.append(snapshot)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return True, snapshot_list
 | 
					    return True, snapshot_list
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user