cli: Fix suddenly appearing pylint warning :/

This commit is contained in:
Cole Robinson 2014-09-20 13:56:55 -04:00
parent c88d085d03
commit 5bbd46a070

View File

@ -766,9 +766,8 @@ class _VirtCLIArgument(object):
if self.lookup_cb:
return self.lookup_cb(opts, inst, self.cliname, val)
else:
# pylint: disable=eval-used
return eval("inst." + self.attrname) == val
# pylint: enable=eval-used
return eval( # pylint: disable=eval-used
"inst." + self.attrname) == val
elif self.setter_cb:
self.setter_cb(opts, inst, self.cliname, val)
else: