Skip to content

Commit 158828a

Browse files
author
Himani Anil Deshpande
committed
[Nvidia-imex] Cookstyle changes
1 parent 037ef0b commit 158828a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cookbooks/aws-parallelcluster-platform/recipes/install/nvidia_install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525

2626
nvidia_dcgm 'install Nvidia datacenter-gpu-manager'
2727

28-
nvidia_imex 'Install Nvidia-imex'
28+
nvidia_imex 'Install Nvidia-imex'

cookbooks/aws-parallelcluster-platform/resources/nvidia_imex/nvidia_imex_amazon2.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
def imex_installed
2020
# We do not install NVIDIA-Imex for Alinux2 due to restriction on NVIDIA driver
21-
return true
22-
end
21+
true
22+
end

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def self.install(chef_run)
8080
allow(File).to receive(:exist?).with(imex_binary).and_return(false)
8181
end
8282

83-
if platform == 'amazon' && version =='2'
83+
if platform == 'amazon' && version == '2'
8484
it 'is true' do
8585
expect(resource.imex_installed).to eq(true)
8686
end
@@ -192,9 +192,9 @@ def self.install(chef_run)
192192
.with(group: 'root')
193193
.with(mode: '0755')
194194
is_expected.not_to create_template("/etc/systemd/system/nvidia-imex.service")
195-
.with(source: 'nvidia-imex/nvidia-imex.service.erb')
196-
.with(user: 'root')
197-
.with(group: 'root')
195+
.with(source: 'nvidia-imex/nvidia-imex.service.erb')
196+
.with(user: 'root')
197+
.with(group: 'root')
198198
.with(mode: '0644')
199199
is_expected.not_to install_package('nvidia-imex')
200200
.with(retries: 3)

0 commit comments

Comments
 (0)