The ironicclient.osc.plugin Module

The ironicclient.osc.plugin Module

OpenStackClient plugin for Bare Metal service.

class ironicclient.osc.plugin.ReplaceLatestVersion(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]

Bases: argparse.Action

Replaces latest keyword by last known version.

OSC cannot accept the literal “latest” as a supported API version as it breaks the major version detection (OSC tries to load configuration options from setuptools entrypoint openstack.baremetal.vlatest). This action replaces “latest” with the latest known version, and sets the global OS_BAREMETAL_API_LATEST flag appropriately.

ironicclient.osc.plugin.build_option_parser(parser)[source]

Hook to add global options.

ironicclient.osc.plugin.make_client(instance)[source]

Returns a baremetal service client.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.