Skip to content

Commit

Permalink
URL was getting incorrectly stringified
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Smith <[email protected]>
  • Loading branch information
sean-smith committed Aug 23, 2018
1 parent a1f5d1d commit 85d046e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cfncluster/cfncluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def update(args):
desired_capacity = asg.describe_auto_scaling_groups(AutoScalingGroupNames=[asg_name])\
.get('AutoScalingGroups')[0]\
.get('DesiredCapacity')
config.parameters.append(('InitialQueueSize', desired_capacity))
config.parameters.append(('InitialQueueSize', str(desired_capacity)))

# Get the MasterSubnetId and use it to determine AvailabilityZone
try:
Expand All @@ -174,7 +174,7 @@ def update(args):
try:
logger.debug((config.template_url, config.parameters))

cfn_params = [{'ParameterKey': param[0], 'ParameterValue': str(param[1])} for param in config.parameters]
cfn_params = [{'ParameterKey': param[0], 'ParameterValue': param[1]} for param in config.parameters]
cfn.update_stack(StackName=stack_name,TemplateURL=config.template_url,
Parameters=cfn_params, Capabilities=capabilities)
status = cfn.describe_stacks(StackName=stack_name).get("Stacks")[0].get('StackStatus')
Expand Down

0 comments on commit 85d046e

Please sign in to comment.