Skip to content

Commit

Permalink
Support for older keyword arguments in group creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlotun committed Apr 1, 2011
1 parent b848b0c commit 63178ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions boto/ec2/autoscale/group.py
Expand Up @@ -86,7 +86,7 @@ def __init__(self, connection=None, name=None,
availability_zones=None,
load_balancers=None, default_cooldown=None,
desired_capacity=None,
min_size=None, max_size=None):
min_size=None, max_size=None, **kwargs):
"""
Creates a new AutoScalingGroup with the specified name.
Expand Down Expand Up @@ -123,11 +123,12 @@ def __init__(self, connection=None, name=None,
:rtype: :class:`boto.ec2.autoscale.group.AutoScalingGroup`
:return: An autoscale group.
"""
self.name = name
self.name = name or kwargs.get('group_name') # backwards compatibility
self.connection = connection
self.min_size = int(min_size) if min_size is not None else None
self.max_size = int(max_size) if max_size is not None else None
self.created_time = None
default_cooldown = default_cooldown or kwargs.get('cooldown') # backwards compatibility
self.default_cooldown = int(default_cooldown) if default_cooldown is not None else None
self.launch_config = launch_config
if self.launch_config:
Expand Down

0 comments on commit 63178ac

Please sign in to comment.