cli: Fix suddenly appearing pylint warning :/
This commit is contained in:
parent
c88d085d03
commit
5bbd46a070
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue