Andrew Onischuk created AMBARI-3365:
---------------------------------------
Summary: Ambari-Client 'index out of range' when trying to get
configs, while they are not present
Key: AMBARI-3365
URL: https://issues.apache.org/jira/browse/AMBARI-3365
Project: Ambari
Issue Type: Bug
Reporter: Andrew Onischuk
Assignee: Andrew Onischuk
Fix For: 1.4.2
Attachments: AMBARI-3365.patch
{code}
Traceback (most recent call last):
File "/root/workspace/AmbariClientTests/tests/test1.py", line 21, in <module>
main()
File "/root/workspace/AmbariClientTests/tests/test1.py", line 15, in main
existant_global_config = cluster.get_global_config()
File
"/root/incubator-ambari/ambari-client/src/main/python/ambari_client/model/cluster.py",
line 163, in get_global_config
return configuration._get_configuration(self._get_resource_root(),
self.cluster_name, "global")
File
"/root/incubator-ambari/ambari-client/src/main/python/ambari_client/model/configuration.py",
line 34, in _get_configuration
config_model = utils.ModelUtils.create_model(ConfigModel , dic["items"][0],
resource_root, "NO_KEY")
IndexError: list index out of range
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira