app/models/logical/naf/construction_zone/boss.rb in naf-1.1.4 vs app/models/logical/naf/construction_zone/boss.rb in naf-2.0.0
- old
+ new
@@ -85,10 +85,10 @@
(1..number_of_jobs).each do
machine_parameters = {
:application_run_group_limit => number_of_jobs,
:application_run_group_restriction => ::Naf::ApplicationRunGroupRestriction.limited_per_machine
}.merge(parameters)
- machine_parameters[:affinities] =
+ machine_parameters[:affinities] =
[machine.affinity] + if machine_parameters[:affinities].nil?
[]
elsif machine_parameters[:affinities].is_a? Array
machine_parameters[:affinities]
else