Merge "Fix isinstance call"
This commit is contained in:
commit
2e2ac99e0d
@ -204,7 +204,7 @@ class _OptFormatter(object):
|
|||||||
# https://bugs.launchpad.net/keystoneauth/+bug/1548433 for
|
# https://bugs.launchpad.net/keystoneauth/+bug/1548433 for
|
||||||
# more details.
|
# more details.
|
||||||
import warnings
|
import warnings
|
||||||
if not isinstance(cfg.Opt, opt):
|
if not isinstance(opt, cfg.Opt):
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
'Incompatible option class for %s (%r): %s' %
|
'Incompatible option class for %s (%r): %s' %
|
||||||
(opt.dest, opt.__class__, err),
|
(opt.dest, opt.__class__, err),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user