This patch removes the locals() call
to fix a flake8 violation.
Fixes Bug #
1209006
Change-Id: Ida4b498544a2c28ffb4912d402579f8bb7372309
if tid is None:
LOG.error(_("Failed to create iser target for volume "
"id:%(vol_id)s. Please ensure your tgtd config file "
- "contains 'include %(volumes_dir)s/*'") % locals())
+ "contains 'include %(volumes_dir)s/*'") %
+ {'vol_id': vol_id, 'volumes_dir': volumes_dir})
raise exception.NotFound()
if old_persist_file is not None and os.path.exists(old_persist_file):