Skip to content

Commit

Permalink
Add missing optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Feb 12, 2025
1 parent 95a1e1e commit f5dc95a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/profile/manifests/gpu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

class profile::gpu::install (
String $lib_symlink_path = undef
Optional[String] $lib_symlink_path = undef
) {
ensure_resource('file', '/etc/nvidia', { 'ensure' => 'directory' })
ensure_packages(['kernel-devel'], { 'name' => "kernel-devel-${facts['kernelrelease']}" })
Expand Down Expand Up @@ -275,8 +275,8 @@

class profile::gpu::install::vgpu::bin (
String $source,
String $gridd_content = undef,
String $gridd_source = undef,
Optional[String] $gridd_content = undef,
Optional[String] $gridd_source = undef,
) {
exec { 'vgpu-driver-install-bin':
command => "curl -L ${source} -o /tmp/NVIDIA-driver.run && sh /tmp/NVIDIA-driver.run --ui=none --no-questions --disable-nouveau && rm /tmp/NVIDIA-driver.run", # lint:ignore:140chars
Expand Down

0 comments on commit f5dc95a

Please sign in to comment.