Removing unecessary update_launch_template() call

parent 197cbb3a
Pipeline #2629 failed with stage
in 19 seconds
...@@ -70,18 +70,9 @@ class ASG(): ...@@ -70,18 +70,9 @@ class ASG():
inactive_asg = asg_liveness_info['inactive_asg'] inactive_asg = asg_liveness_info['inactive_asg']
active_asg = asg_liveness_info['active_asg'] active_asg = asg_liveness_info['active_asg']
new_ami = ami new_ami = ami
current_lt_info = self.get_launch_template_info(self.get_lt_name(inactive_asg))
logging.info("New ASG was worked out as {}. Now updating it's Launch Template".format(inactive_asg)) logging.info("New ASG was worked out as {}. Now updating it's Launch Template".format(inactive_asg))
# Set the current ASG to the current launch template version. Shouldn't actually be necessary,
# since it's done during the previous deploy, but including for completeness and paranoia
self.set_asg_launch_template_version(
asg=active_asg,
lt_id=current_lt_info["id"],
lt_version=current_lt_info["version"],
)
# Update the lt and set the soon to be new ASG to the new launch template version # Update the lt and set the soon to be new ASG to the new launch template version
updated_lt = self.update_launch_template(new_ami, self.get_lt_name(inactive_asg)) updated_lt = self.update_launch_template(new_ami, self.get_lt_name(inactive_asg))
self.set_asg_launch_template_version( self.set_asg_launch_template_version(
......
...@@ -8,7 +8,7 @@ with open("README.md", "r") as fh: ...@@ -8,7 +8,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="akinaka", name="akinaka",
version="0.5.3", version="0.5.4",
python_requires='>=3.3.0', python_requires='>=3.3.0',
author="Afraz", author="Afraz",
author_email="afraz@olindata.com", author_email="afraz@olindata.com",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment