From 9ca3fc0c0906c2c04425c50ac848e5e04aa723f9 Mon Sep 17 00:00:00 2001 From: "Walter A. Boring IV" Date: Tue, 6 Aug 2013 14:43:35 -0700 Subject: [PATCH] Remove locals() from iser This patch removes the locals() call to fix a flake8 violation. Fixes Bug #1209006 Change-Id: Ida4b498544a2c28ffb4912d402579f8bb7372309 --- cinder/brick/iser/iser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.45.2