Skip to content

Commit

Permalink
ECS capacity provider cache now uses obj_hash()
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwater committed May 14, 2021
1 parent 23e4441 commit 068f49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paco/application/reseng_asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_ec2lm_cache_id(self, hook, hook_arg):
def provision_ecs_capacity_provider_cache(self, hook, asg):
"Cache method for ECS ASG"
cp = asg.ecs.capacity_provider
return md5sum(str_data=f"{cp.managed_instance_protection}-{asg.paco_ref}-{cp.is_enabled()}-{cp.target_capacity}-{cp.minimum_scaling_step_size}-{cp.maximum_scaling_step_size}")
return cp.obj_hash()

def provision_ecs_capacity_provider(self, hook, asg):
"Hook to add an ECS Capacity Provider to the ECS Cluster the ASG belongs to"
Expand Down

0 comments on commit 068f49e

Please sign in to comment.