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:
Davanum Srinivas 2016-03-11 13:42:15 -05:00
parent 3976e7e4c5
commit 37588d709c

View File

@ -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),