Lint: F821 undefined name 'name'

This commit is contained in:
Joshua Boniface 2020-11-07 13:38:16 -05:00
parent a4823bbb9c
commit 145b1531a4
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ def unmap_volume(zk_conn, pool, name):
def get_list_volume(zk_conn, pool, limit, is_fuzzy=True):
volume_list = []
if pool and not verifyPool(zk_conn, pool):
return False, 'ERROR: No pool with name "{}" is present in the cluster.'.format(name)
return False, 'ERROR: No pool with name "{}" is present in the cluster.'.format(pool)
full_volume_list = getCephVolumes(zk_conn, pool)