Skip to content

Commit a0e49b2

Browse files
authored
json output is a list
1 parent da91a16 commit a0e49b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/lustre/tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
_lustre_interface: "{{ _lustre_ip_r_mgs_info.dev }}"
1313
_lustre_ip: "{{ _lustre_ip_r_mgs_info.prefsrc }}"
1414
vars:
15-
_lustre_ip_r_mgs_info: "{{ _lustre_ip_r_mgs.stdout | from_json }}"
15+
_lustre_ip_r_mgs_info: "{{ _lustre_ip_r_mgs.stdout | from_json | first }}"
1616

1717
- name: Write LNet configuration file
1818
template:

0 commit comments

Comments
 (0)