@removals.remove(message='keystoneclient auth plugins are deprecated. Use keystoneauth.', version='2.1.0', removal_version='3.0.0')
def load_from_argparse_arguments(namespace, **kwargs):
 if (not namespace.os_auth_plugin):
  return None
 if isinstance(namespace.os_auth_plugin, type):
  plugin = namespace.os_auth_plugin
 else:
  plugin = base.get_plugin_class(namespace.os_auth_plugin)
 return plugin.load_from_argparse_arguments(namespace, **kwargs)

@ removals . remove ( message = 'keystoneclient auth plugins are deprecated. Use keystoneauth.' , version = '2.1.0' , removal_version = '3.0.0' ) def load_from_argparse_arguments ( namespace , ** kwargs ) : if ( not namespace . os_auth_plugin ) : return None if isinstance ( namespace . os_auth_plugin , type ) : plugin = namespace . os_auth_plugin else : plugin = base . get_plugin_class ( namespace . os_auth_plugin ) return plugin . load_from_argparse_arguments ( namespace , ** kwargs )
retrieve the created plugin from the completed argparse results .