File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
cookbooks/aws-parallelcluster-platform/resources/nvidia_imex/partial Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 3939 owner 'root'
4040 group 'root'
4141 mode '0755'
42- action :create
43- not_if { file_exists_and_cluster_update?(nvidia_imex_nodes_conf_file) }
42+ action :create_if_missing
4443 end
4544
4645 template nvidia_imex_main_conf_file do
4746 source 'nvidia-imex/nvidia-imex-config.erb'
4847 owner 'root'
4948 group 'root'
5049 mode '0755'
51- action :create
52- not_if { file_exists_and_cluster_update?(nvidia_imex_main_conf_file) }
50+ action :create_if_missing
5351 variables(imex_nodes_config_file_path: nvidia_imex_nodes_conf_file)
5452 end
5553
@@ -93,10 +91,6 @@ def nvidia_enabled_or_installed?
9391 nvidia_enabled? || nvidia_installed?
9492end
9593
96- def file_exists_and_cluster_update?(file_path)
97- ::File.exist?(file_path) && !are_queues_updated?
98- end
99-
10094def nvidia_imex_main_conf_file
10195 "#{node['cluster']['nvidia']['imex']['shared_dir']}/config_#{node['cluster']['launch_template_id']}.cfg"
10296end
You can’t perform that action at this time.
0 commit comments