Skip to content
Snippets Groups Projects
Commit 6e8f5a36 authored by Chris Hines's avatar Chris Hines
Browse files

since nvidia-probe always outputs valid json now, remove unncessary conditionals

Former-commit-id: fe33ed19
parent 468e3b7b
No related branches found
No related tags found
No related merge requests found
......@@ -88,11 +88,8 @@
script: scripts/nvidia-probe.py
register: probeOutput
- set_fact: slurm_gres_list= "[ ]"
- name: "set nvidiaprobe slurm_gres_list"
set_fact: "slurm_gres_list={{ probeOutput.stdout | from_json }}"
when: probeOutput.stdout is defined and ( probeOutput.stdout|length !=0 )
set_fact: "slurm_gres_list={{ probeOutput.stdout }}"
- name: template gres.conf file
template: src="gres.conf.j2" dest={{ slurm_dir }}/etc/gres/gres.conf mode=644
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment