unable to make_sdk using argparse

Bug #1629319 reported by Matthew Edmonds
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-client-config
New
Undecided
Matthew Edmonds

Bug Description

The following example taken from http://docs.openstack.org/developer/os-client-config/#constructing-openstack-sdk-object does not work, as seen here:

>>> import argparse
>>> import os_client_config
>>> sdk = os_client_config.make_sdk(options=argparse.ArgumentParser())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/os_client_config/__init__.py", line 83, in make_sdk
    cloud = get_config(options=options, **kwargs)
  File "/usr/lib/python2.7/site-packages/os_client_config/__init__.py", line 29, in get_config
    config.register_argparse_options(options, sys.argv, service_key)
AttributeError: 'OpenStackConfig' object has no attribute 'register_argparse_options'

There is an OpenStackConfig.register_argparse_arguments method, but not register_argparse_options.

This was found with os-client-config 1.21.1

Changed in os-client-config:
assignee: nobody → Matthew Edmonds (edmondsw)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.