Skip to content

Commit abc3f1f

Browse files
author
Himani Anil Deshpande
committed
[Nvidia-Imex] Update action sequence for service
1 parent 329166a commit abc3f1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# Start nvidia-imex on p6e-gb200 and only on ComputeFleet
6565
if get_nvswitch_count(get_device_ids['gb200']) > 1
6666
service nvidia_imex_service do
67-
action %i(start enable)
67+
action %i(enable start)
6868
supports status: true
6969
end
7070
end

cookbooks/aws-parallelcluster-platform/spec/unit/resources/nvidia_imex_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@ def self.configure(chef_run)
305305

306306
if (platform == 'amazon' && version == '2') || %w(HeadNode LoginNode).include?(node_type)
307307
it 'does not configure nvidia-imex' do
308-
is_expected.not_to start_service('nvidia-imex').with_action(%i(start enable)).with_supports({ status: true })
308+
is_expected.not_to start_service('nvidia-imex').with_action(%i(enable start)).with_supports({ status: true })
309309
end
310310
else
311311
it 'it starts nvidia-imex service' do
312-
is_expected.to start_service('nvidia-imex').with_action(%i(start enable)).with_supports({ status: true })
312+
is_expected.to start_service('nvidia-imex').with_action(%i(enable start)).with_supports({ status: true })
313313
end
314314
end
315315
end
@@ -332,7 +332,7 @@ def self.configure(chef_run)
332332
end
333333

334334
it 'does not configure nvidia-imex' do
335-
is_expected.not_to start_service('nvidia-imex').with_action(%i(start enable)).with_supports({ status: true })
335+
is_expected.not_to start_service('nvidia-imex').with_action(%i(enable start)).with_supports({ status: true })
336336
end
337337
end
338338
end

0 commit comments

Comments
 (0)