Open gnuton opened 8 years ago
Nevermind it looks like boto doesn't like conditionals there too. I ll close the report.
botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the CreateStack operation: Template format error: Every Mappings attribute must be a String or a List.
The mapping problem was related to Conditions into SenzaInfo
PROBLEM: As the title says sanza autoscaling group doesn't support conditionals for Minimum variable.
STEPS TO REPRODUCE THE ISSUE Copy the YAML below in a file and try to generate a cloudformation template out of it: senza print the_yaml_file_below.yaml 0
the exepected outcome is a cloudformation template, but the real outcome is a crash. python throws an exception File "/usr/local/lib/python3.5/dist-packages/senza/components/auto_scaling_group.py", line 151, in component_auto_scaling_group asg_properties["DesiredCapacity"] = max(int(as_conf["Minimum"]), int(as_conf.get('DesiredCapacity', 1)))
HOW TO FIX THIS ISSUE Replace asg_properties["DesiredCapacity"] = max(int(as_conf["Minimum"]), int(as_conf.get('DesiredCapacity', 1))) with: asg_properties["DesiredCapacity"] = as_conf["Minimum"]
ATTACHEMENTS: