Skip to content

Commit f1564f4

Browse files
committed
hotfix: Fix setting containers_list and running without a command
1 parent 33328d9 commit f1564f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

etc/kayobe/ansible/hotfix-containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
- name: Set fact for containers list
3232
set_fact:
33-
containers_list: host_containers.stdout
33+
containers_list: "{{ host_containers.stdout }}"
3434

3535
- name: Fail if no containers match given regex
3636
vars:

etc/kayobe/ansible/run-container-hotfix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020

2121
- name: Run container_hotfix_command
2222
command: "{{ kolla_container_engine | default('docker')}} exec {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command }}"
23+
when: container_hotfix_command

0 commit comments

Comments
 (0)