Skip to content

Commit

Permalink
Do not sort spank plugin arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Jan 26, 2021
1 parent 67673a9 commit 75531a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/defines/slurm_spank_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

it do
verify_fragment_contents(catalogue, 'plugstack.conf-x11', [
'optional x11.so helpertask_cmd=2>/tmp/log ssh_cmd=ssh',
'optional x11.so ssh_cmd=ssh helpertask_cmd=2>/tmp/log',
])
end
end
Expand All @@ -61,7 +61,7 @@

it do
verify_fragment_contents(catalogue, 'plugstack.conf-x11', [
'optional x11.so helpertask_cmd=2>/tmp/log ssh_cmd=ssh',
'optional x11.so ssh_cmd=ssh helpertask_cmd=2>/tmp/log',
])
end
end
Expand Down
6 changes: 3 additions & 3 deletions templates/spank/plugin.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ values << (@required ? "required" : "optional")
values << @plugin
case @arguments
when Hash
@arguments.keys.sort.each do |k|
values << "#{k}=#{@arguments[k]}"
@arguments.each_pair do |k,v|
values << "#{k}=#{v}"
end
when Array
@arguments.sort.each do |a|
@arguments.each do |a|
values << a
end
when String
Expand Down

0 comments on commit 75531a7

Please sign in to comment.