Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit ae07a66

Browse files
fix_asg_management_workaround_task_condition (#756)
1 parent 4d8e209 commit ae07a66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/deploy_code/tasks/cleanup.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
delegate_to: localhost
261261
run_once: true
262262
when:
263+
- asg_management.name is defined
263264
- asg_management.name | length > 0
264265

265266
- name: Run ASG instance refresh.
@@ -276,6 +277,7 @@
276277
delegate_to: localhost
277278
run_once: true
278279
when:
280+
- asg_management.name is defined
279281
- asg_management.name | length > 0
280282
- asg_management.refresh_asg_instances
281283

@@ -290,7 +292,7 @@
290292
when:
291293
- deploy_code.service_action == "stop"
292294
- deploy_code.services | length > 0
293-
- not asg_management.refresh_asg_instances or (asg_management.name | length) == 0
295+
- not asg_management.refresh_asg_instances or asg_management.name is not defined
294296
# End of the squashFS block.
295297

296298
- name: Trigger an infrastructure rebuild.

0 commit comments

Comments
 (0)