Skip to content

Commit

Permalink
Merge pull request #653 from IBM/mirror
Browse files Browse the repository at this point in the history
#651 Only ignore mv errors
  • Loading branch information
fketelaars authored Mar 2, 2024
2 parents cb37a2f + 9e40c3c commit de677db
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@
- '(oc image mirror.*)'
- '(oc ibm-pak generate.*)'

- name: Ensure that the mv statements do not fail if the source and destination is the same
replace:
path: "{{ status_dir }}/cp4d/mirror-images-case-save-ibm-pak.sh"
regexp: "(mv /tmp/work/offline.*)"
replace: '\1 | true'

- name: Download case files, logs are in {{ status_dir }}/log/mirror-images-case-save-ibm-pak.log
shell: |
HOME=/tmp/work/offline/{{ _p_current_cp4d_cluster.cp4d_version }} && \
{{ status_dir }}/cp4d/mirror-images-case-save-ibm-pak.sh > {{ status_dir }}/log/mirror-images-case-save-ibm-pak.log
args:
chdir: /tmp/work
failed_when: False

- name: Create {{ status_dir }}/cp4d directory
file:
Expand Down

0 comments on commit de677db

Please sign in to comment.