Lint: F821 undefined name 'volume'

This commit is contained in:
Joshua Boniface 2020-11-07 13:37:55 -05:00
parent 516e36686c
commit a4823bbb9c
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ def remove_volume(zk_conn, pool, name):
# 1. Remove volume snapshots # 1. Remove volume snapshots
for snapshot in zkhandler.listchildren(zk_conn, '/ceph/snapshots/{}/{}'.format(pool, name)): for snapshot in zkhandler.listchildren(zk_conn, '/ceph/snapshots/{}/{}'.format(pool, name)):
remove_snapshot(zk_conn, pool, volume, snapshot) remove_snapshot(zk_conn, pool, name, snapshot)
# 2. Remove the volume # 2. Remove the volume
retcode, stdout, stderr = common.run_os_command('rbd rm {}/{}'.format(pool, name)) retcode, stdout, stderr = common.run_os_command('rbd rm {}/{}'.format(pool, name))