Fix isinstance call
Neutron folks are seeing the following message when generating their config Clearly the 2nd parameter should be the class Change-Id: I88416f940bf6d366f113c3d482349ff4c890bd9e
This commit is contained in:
parent
3976e7e4c5
commit
37588d709c
@ -204,7 +204,7 @@ class _OptFormatter(object):
|
||||
# https://bugs.launchpad.net/keystoneauth/+bug/1548433 for
|
||||
# more details.
|
||||
import warnings
|
||||
if not isinstance(cfg.Opt, opt):
|
||||
if not isinstance(opt, cfg.Opt):
|
||||
warnings.warn(
|
||||
'Incompatible option class for %s (%r): %s' %
|
||||
(opt.dest, opt.__class__, err),
|
||||
|
Loading…
x
Reference in New Issue
Block a user