Skip to content

Commit

Permalink
Show Ganglia Output
Browse files Browse the repository at this point in the history
* Fixes aws#1322

Signed-off-by: Sean Smith <[email protected]>
  • Loading branch information
sean-smith committed Sep 18, 2019
1 parent 95b1d5d commit c2284e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/pcluster/pcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _print_stack_outputs(stack):

def is_ganglia_enabled(parameters):
try:
extra_json = filter(lambda x: x.get("ParameterKey") == "ExtraJson", parameters)[0].get("ParameterValue")
extra_json = list(filter(lambda x: x.get("ParameterKey") == "ExtraJson", parameters))[0].get("ParameterValue")
extra_json = json.loads(extra_json).get("cfncluster")
return extra_json.get("ganglia_enabled") == "yes"
except Exception:
Expand Down

0 comments on commit c2284e6

Please sign in to comment.