无法设置openstack动态库存

时间:2018-04-05 18:25:03

标签: python dynamic ansible openstack ansible-inventory

我正在尝试设置openstack动态库存,当我尝试执行此命令时,它会给我这个错误。

命令: etc/ansible/hosts --list

Traceback (most recent call last):
  File "/etc/ansible/hosts", line 263, in <module>
    main()
  File "/etc/ansible/hosts", line 249, in main
    inventory = shade.inventory.OpenStackInventory(**inventory_args)
  File "/usr/local/lib/python2.7/dist-packages/shade/inventory.py", line 35, in __init__
    config_files=os_client_config.config.CONFIG_FILES + config_files)
  File "/usr/local/lib/python2.7/dist-packages/os_client_config/config.py", line 221, in __init__
    self.cloud_config['clouds'] = {}
TypeError: list indices must be integers, not str

0 个答案:

没有答案