Skip to content

Instantly share code, notes, and snippets.

@jamielennox
Created February 17, 2015 05:55
Show Gist options
  • Save jamielennox/7f5cfabd64a6922e643c to your computer and use it in GitHub Desktop.
Save jamielennox/7f5cfabd64a6922e643c to your computer and use it in GitHub Desktop.
List all the plugins found on the system and print their options.
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