Skip to content

Commit

Permalink
Merge pull request #20809 from agrare/fix_ems_workers_ems_id_non_array
Browse files Browse the repository at this point in the history
Ensure that options[:ems_id] is an Array when passed as an ENV var

(cherry picked from commit 8ac612f)
  • Loading branch information
jrafanie authored and simaishi committed Nov 13, 2020
1 parent 38be099 commit efe017f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/bin/run_single_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def all_role_names
# Skip heartbeating with single worker
ENV["DISABLE_MIQ_WORKER_HEARTBEAT"] ||= options[:heartbeat] ? nil : '1'

options[:ems_id] ||= ENV["EMS_ID"]
options[:ems_id] ||= ENV["EMS_ID"].try(:split, ',')

if options[:roles].present?
MiqServer.my_server.server_role_names += options[:roles]
Expand Down

0 comments on commit efe017f

Please sign in to comment.