Unsupported module driver not logged correctly

If an invalid module driver is found, the method is erroneously
printed out instead of the actual 'type.'  This is due
to missing parenthesis in the logging call.

This has been fixed.

Change-Id: I6fb23b3dbbec98de9ee1e2731bcfc56ab3c0ca42
Closes-Bug: #1579900
This commit is contained in:
Peter Stachowski 2016-05-09 20:32:31 +00:00
parent 4e314e5e29
commit 970d23ff2a
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
fixes:
- An invalid module driver is now logged correctly.
Bug 1579900

View File

@ -69,7 +69,7 @@ class ModuleDriverManager(object):
supported = True
else:
LOG.info(_("Driver '%s' not supported, skipping"),
driver.get_type)
driver.get_type())
except AttributeError as ex:
LOG.exception(_("Exception loading module driver: %s"),
encodeutils.exception_to_unicode(ex))