Skip to content

Commit

Permalink
1586: awx-operator restore from PVC is not working (ansible#1603)
Browse files Browse the repository at this point in the history
Co-authored-by: Roman Kuzmik <[email protected]>
  • Loading branch information
romankuzmik and Roman Kuzmik authored Nov 9, 2023
1 parent e4cfa2f commit 669fe1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/restore/tasks/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
backup_pvc: "{{ this_backup['resources'][0]['status']['backupClaim'] }}"
backup_dir: "{{ this_backup['resources'][0]['status']['backupDirectory'] }}"
when:
- backup_name != '' or backup_name is defined
- backup_name is defined and backup_name != ''

# Check to make sure provided pvc exists, error loudly if not. Otherwise, the management pod will just stay in pending state forever.
- name: Check provided PVC exists
Expand Down

0 comments on commit 669fe1d

Please sign in to comment.