Skip to content

Commit 5859dac

Browse files
committed
Fix function definition
1 parent 1558d95 commit 5859dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/profile/lib/puppet/functions/profile/slurm/compute_weights.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Puppet::Functions.create_function(:'profile::slurm::compute_weights') do
2-
dispatch :'profile::slurm::compute_weights' do
2+
dispatch :compute_weights do
33
param 'Hash', :instances
44
return_type 'Hash'
55
end
66

7-
def profile::slurm::compute_weights(instances)
7+
def compute_weights(instances)
88
require 'set'
99
unique_specs = Set.new(instances.values.map {|i| i['specs']})
1010
sorted_specs = unique_specs.sort_by{|spec| [spec['gpus'], spec['ram'], spec['cpus']]}

0 commit comments

Comments
 (0)