Lint: F821 undefined name 'new_name'

This commit is contained in:
Joshua Boniface 2020-11-07 13:36:56 -05:00
parent 146c969ef7
commit dc1269ffc2
1 changed files with 1 additions and 1 deletions

View File

@ -919,7 +919,7 @@ def clone_volume(zk_conn, pool, name_src, name_new):
# 1. Clone the volume
retcode, stdout, stderr = common.run_os_command('rbd copy {}/{} {}/{}'.format(pool, name_src, pool, name_new))
if retcode:
return False, 'ERROR: Failed to clone RBD volume "{}" to "{}" in pool "{}": {}'.format(name_src, new_name, pool, stderr)
return False, 'ERROR: Failed to clone RBD volume "{}" to "{}" in pool "{}": {}'.format(name_src, name_new, pool, stderr)
# 2. Get volume stats
retcode, stdout, stderr = common.run_os_command('rbd info --format json {}/{}'.format(pool, name_new))