Created
February 17, 2015 05:55
-
-
Save jamielennox/7f5cfabd64a6922e643c to your computer and use it in GitHub Desktop.
List all the plugins found on the system and print their options.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import stevedore | |
mgr = stevedore.ExtensionManager(namespace='keystoneclient.auth.plugin', | |
invoke_on_load=False) | |
def print_plugin(ext): | |
print "%s:" % ext.entry_point.name | |
for opt in ext.plugin.get_options(): | |
print " %s: %s" % (opt.name, opt.help) | |
mgr.map(print_plugin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment