From: Walter A. Boring IV Date: Tue, 6 Aug 2013 21:43:35 +0000 (-0700) Subject: Remove locals() from iser X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9ca3fc0c0906c2c04425c50ac848e5e04aa723f9;p=openstack-build%2Fcinder-build.git Remove locals() from iser This patch removes the locals() call to fix a flake8 violation. Fixes Bug #1209006 Change-Id: Ida4b498544a2c28ffb4912d402579f8bb7372309 --- diff --git a/cinder/brick/iser/iser.py b/cinder/brick/iser/iser.py index b82c2d49d..cafb2ac95 100755 --- a/cinder/brick/iser/iser.py +++ b/cinder/brick/iser/iser.py @@ -168,7 +168,8 @@ class TgtAdm(TargetAdmin): 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):