From d59e24e5639f6ce81d43eddce8350b55a4401310 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 23 May 2018 18:19:47 +0200 Subject: [PATCH] Use longer version for imagestream Older version of origin-clients does not work with short version (oc get is) --- playbooks/roles/os_temps/tasks/setup_os_templates.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/os_temps/tasks/setup_os_templates.yml b/playbooks/roles/os_temps/tasks/setup_os_templates.yml index c324407c..b085499d 100644 --- a/playbooks/roles/os_temps/tasks/setup_os_templates.yml +++ b/playbooks/roles/os_temps/tasks/setup_os_templates.yml @@ -151,5 +151,5 @@ # Setup tag if container image build successful - name: Modify tags on images - shell: "{{ oc_bin }} get is | awk '{print $2}' | grep -v DOCKER | sed 's/.*5000\\///g' | grep '{{ build_config_name_file.stdout }}' | xargs -i {{ oc_bin }} tag {}:latest {}:{{ tag }}" - when: modify_tags|bool == true and build_success|bool == true \ No newline at end of file + shell: "{{ oc_bin }} get imagestream | awk '{print $2}' | grep -v DOCKER | sed 's/.*5000\\///g' | grep '{{ build_config_name_file.stdout }}' | xargs -i {{ oc_bin }} tag {}:latest {}:{{ tag }}" + when: modify_tags|bool == true and build_success|bool == true