Skip to content

Commit

Permalink
fix restore
Browse files Browse the repository at this point in the history
  • Loading branch information
l3acon committed Aug 20, 2024
1 parent 79667e3 commit 27172c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions openshift/cnv/create_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,10 @@
wait: yes
when: state.resources.0.spec.running

- name: Export snapshot name
ansible.builtin.set_stats:
data:
restore_snapshot_name: "{{ snapshot.result.metadata.name }}"

- debug:
msg: "Successfully created snapshot {{ snapshot.result.metadata.name }}"
3 changes: 1 addition & 2 deletions openshift/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ controller_templates:
required: true
- question_name: Snapshot Name
type: text
variable: vm_namespace
default: openshift-cnv
variable: restore_snapshot_name
required: true
credentials:
- "OpenShift Credential"
Expand Down

0 comments on commit 27172c8

Please sign in to comment.