Skip to content

Commit db0610f

Browse files
committed
[IMEX] Remove unnecessary condition to skip creation of main and nodes config file.
1 parent 9f091d2 commit db0610f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cookbooks/aws-parallelcluster-platform/resources/nvidia_imex/partial/_nvidia_imex_common.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
group 'root'
4141
mode '0755'
4242
action :create
43-
not_if { file_exists_and_cluster_update?(nvidia_imex_nodes_conf_file) }
43+
not_if { File.exist?(nvidia_imex_nodes_conf_file) }
4444
end
4545

4646
template nvidia_imex_main_conf_file do
@@ -49,7 +49,7 @@
4949
group 'root'
5050
mode '0755'
5151
action :create
52-
not_if { file_exists_and_cluster_update?(nvidia_imex_main_conf_file) }
52+
not_if { File.exist?(nvidia_imex_main_conf_file) }
5353
variables(imex_nodes_config_file_path: nvidia_imex_nodes_conf_file)
5454
end
5555

@@ -93,10 +93,6 @@ def nvidia_enabled_or_installed?
9393
nvidia_enabled? || nvidia_installed?
9494
end
9595

96-
def file_exists_and_cluster_update?(file_path)
97-
::File.exist?(file_path) && !are_queues_updated?
98-
end
99-
10096
def nvidia_imex_main_conf_file
10197
"#{node['cluster']['nvidia']['imex']['shared_dir']}/config_#{node['cluster']['launch_template_id']}.cfg"
10298
end

0 commit comments

Comments
 (0)