-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug with AutoScaling scheduled actions.
The `AWS::AutoScaling::ScheduledAction` class incorrectly assumed that their group names were unique and suffient to identify the action. In order to correct this bug, it was required to add a new positional required argument to the `ScheduledAction` constructor. This affects two code paths. First, the scheduled action collection must now be scoped by a group: # now raises an error, must scope to a group first auto_scaling.scheduled_actions['name'] # this works auto_scaling.groups['group-name'].scheduled_actions['name'] # this also works auto_scaling.scheduled_actions.filter(:group => 'group-name')['name'] Also the constructor now requires a group: # no longer works, raises error AWS::AutoScaling::ScheduledAction.new('name') # this works group = AWS::AutoScaling::Group.new('group-name') AWS::AutoScaling::ScheduledAction.new(group, 'name')
- Loading branch information
1 parent
c0236c6
commit 527854b
Showing
4 changed files
with
57 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters