Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07F7D108E1 for ; Fri, 27 Sep 2013 18:50:04 +0000 (UTC) Received: (qmail 73710 invoked by uid 500); 27 Sep 2013 18:50:03 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 73527 invoked by uid 500); 27 Sep 2013 18:50:03 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 73501 invoked by uid 99); 27 Sep 2013 18:50:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 18:50:02 +0000 Date: Fri, 27 Sep 2013 18:50:02 +0000 (UTC) From: "Andrew Onischuk (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-3365) Ambari-Client 'index out of range' when trying to get configs, while they are not present MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 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