Lint: F821 undefined name 'volume'
This commit is contained in:
parent
516e36686c
commit
a4823bbb9c
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue