Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Merge pull request #2889 from jaysensharma/AMBARI-25212
[AMBARI-25212] output and Ambari API output of config prop…
  • Loading branch information
jaysensharma committed Apr 5, 2019
2 parents 1b3fa75 + 180a7a3 commit 23aab4c58aa5a66163e08f073be0e54e75b64579
Showing 1 changed file with 2 additions and 1 deletion.
@@ -20,6 +20,7 @@

import optparse
from optparse import OptionGroup
from collections import OrderedDict
import sys
import urllib2, ssl
import time
@@ -134,7 +135,7 @@ def get_current_config(cluster, config_type, accessor):
config_tag = get_config_tag(cluster, config_type, accessor)"### on (Site:{0}, Tag:{1})".format(config_type, config_tag))
response = accessor(CONFIGURATION_URL.format(cluster, config_type, config_tag))
config_by_tag = json.loads(response)
config_by_tag = json.loads(response, object_pairs_hook=OrderedDict)
current_config = config_by_tag[ITEMS][0]
return current_config[PROPERTIES], current_config.get(ATTRIBUTES, {})

0 comments on commit 23aab4c

Please sign in to comment.