|
|
|
@ -942,9 +942,9 @@ def create_autoscaling_group(connection, module):
|
|
|
|
|
attach_lb_target_groups(connection, group_name, tgs_to_attach)
|
|
|
|
|
|
|
|
|
|
# check for attributes that aren't required for updating an existing ASG
|
|
|
|
|
desired_capacity = desired_capacity or as_group['DesiredCapacity']
|
|
|
|
|
min_size = min_size or as_group['MinSize']
|
|
|
|
|
max_size = max_size or as_group['MaxSize']
|
|
|
|
|
desired_capacity = desired_capacity if desired_capacity is not None else as_group['DesiredCapacity']
|
|
|
|
|
min_size = min_size if min_size is not None else as_group['MinSize']
|
|
|
|
|
max_size = max_size if max_size is not None else as_group['MaxSize']
|
|
|
|
|
launch_config_name = launch_config_name or as_group['LaunchConfigurationName']
|
|
|
|
|
|
|
|
|
|
launch_configs = describe_launch_configurations(connection, launch_config_name)
|
|
|
|
|