Hello 

I am trying to use the dynamic inventory script:

$ ./openstack.py  --host 10.2.1.111

Traceback (most recent call last):

  File "./openstack.py", line 246, in <module>

    main()

  File "./openstack.py", line 232, in main

    inventory = shade.inventory.OpenStackInventory(**inventory_args)

  File "/usr/local/lib/python2.7/dist-packages/shade/inventory.py", line 
35, in __init__

    self.extra_config = config.get_extra_config(

AttributeError: 'OpenStackConfig' object has no attribute 'get_extra_config'



That line:


class OpenStackInventory(object):


    # Put this here so the capability can be detected with hasattr on the 
class

    extra_config = None


  

        config = os_client_config.config.OpenStackConfig(

            config_files=os_client_config.config.CONFIG_FILES + 
config_files)

#Line 35 

       self.extra_config = config.get_extra_config(

            config_key, config_defaults)


It is calling os_client_config.config.OpenStackConfig


This object has this method get_extra_config:


    def get_extra_config(self, key, defaults=None):

        """Fetch an arbitrary extra chunk of config, laying in defaults.


        :param string key: name of the config section to fetch

        :param dict defaults: (optional) default values to merge under the

                                         found config

        """

        if not defaults:

            defaults = {}

        return _merge_clouds(

            self._normalize_keys(defaults),

            self._normalize_keys(self.cloud_config.get(key, {})))


Any clue?


Regards


Sergio

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b609ff53-7029-4d75-b5f4-782f52ef3cdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to