I think this may actually be an openstacksdk bug. I was able to get os_client_config.config.get_one_cloud working like this:
cloud_config = os_client_config.OpenStackConfig() parser = argparse.ArgumentParser() cloud_config.register_argparse_arguments(parser, sys.argv[1:]) options = parser.parse_args() cloud = cloud_config.get_one_cloud(argparse=options)
whereas openstacksdk is just passing the ArgumentParser() instance without calling register_argparse_arguments or parse_args
I think this may actually be an openstacksdk bug. I was able to get os_client_ config. config. get_one_ cloud working like this:
cloud_config = os_client_ config. OpenStackConfig () ArgumentParser( ) register_ argparse_ arguments( parser, sys.argv[1:]) get_one_ cloud(argparse= options)
parser = argparse.
cloud_config.
options = parser.parse_args()
cloud = cloud_config.
whereas openstacksdk is just passing the ArgumentParser() instance without calling register_ argparse_ arguments or parse_args