From 4cdf9e282481bde69b9b47b11a7435fd07aa1de6 Mon Sep 17 00:00:00 2001 From: Ryan Lane Date: Mon, 28 Sep 2015 16:31:51 -0700 Subject: [PATCH] Fixes for __states__ calls --- salt/states/boto_asg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/salt/states/boto_asg.py b/salt/states/boto_asg.py index fc59f882e1..dd6aa22449 100644 --- a/salt/states/boto_asg.py +++ b/salt/states/boto_asg.py @@ -442,7 +442,6 @@ def present( args.update(d) if not __opts__['test']: lc_ret = __states__['boto_lc.present'](**args) - lc_ret = lc_ret.values()[0] if lc_ret['result'] is True and lc_ret['changes']: if 'launch_config' not in ret['changes']: ret['changes']['launch_config'] = {} @@ -713,8 +712,7 @@ def _alarms_present(name, min_size_equals_max_size, alarms, alarms_from_pillar, 'keyid': keyid, 'profile': profile, } - ret = __states__['boto_cloudwatch_alarm.present'](**kwargs) - results = ret.values()[0] + results = __states__['boto_cloudwatch_alarm.present'](**kwargs) if not results['result']: merged_return_value['result'] = False if results.get('changes', {}) != {}: