Skip to content

Commit c9a8102

Browse files
committed
backup-and-restore: fix a typo
Typo introduced during initial implementation. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2051640 Signed-off-by: Guillaume Abrioux <[email protected]> (cherry picked from commit e28c486)
1 parent a01c890 commit c9a8102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrastructure-playbooks/backup-and-restore-ceph-files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383
- name: get a list of files to be restored
8484
find:
8585
paths:
86-
- "{{ backup_dir }}/{{ hostvars[_node]['ansible_facts']['hostname'] }}"
86+
- "{{ backup_dir }}/{{ hostvars[target_node]['ansible_facts']['hostname'] }}"
8787
recurse: yes
8888
register: file_to_restore
8989

9090
- name: restore files
9191
copy:
9292
src: "{{ item.path }}"
93-
dest: "{{ item.path | replace(backup_dir + '/' + hostvars[_node]['ansible_facts']['hostname'], '') }}"
93+
dest: "{{ item.path | replace(backup_dir + '/' + hostvars[target_node]['ansible_facts']['hostname'], '') }}"
9494
mode: preserve
9595
loop: "{{ file_to_restore.files }}"
9696
delegate_to: "{{ target_node }}"

0 commit comments

Comments
 (0)