From a4823bbb9c9eb380ba8cdc6297f1798761bf37ef Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 13:37:55 -0500 Subject: [PATCH] Lint: F821 undefined name 'volume' --- daemon-common/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/ceph.py b/daemon-common/ceph.py index ea0a1697..4e9ec66d 100644 --- a/daemon-common/ceph.py +++ b/daemon-common/ceph.py @@ -1012,7 +1012,7 @@ def remove_volume(zk_conn, pool, name): # 1. Remove volume snapshots 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 retcode, stdout, stderr = common.run_os_command('rbd rm {}/{}'.format(pool, name))