From caa688cdc6d3bfc107465b05622852d7f7fc6348 Mon Sep 17 00:00:00 2001 From: Iain Hecker Date: Thu, 27 Oct 2011 00:28:06 +0300 Subject: [PATCH] Processes is not a Hash, but an Array. --- lib/foreman/export/inittab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman/export/inittab.rb b/lib/foreman/export/inittab.rb index eb448a0..8dd4811 100644 --- a/lib/foreman/export/inittab.rb +++ b/lib/foreman/export/inittab.rb @@ -12,7 +12,7 @@ class Foreman::Export::Inittab < Foreman::Export::Base inittab = [] inittab << "# ----- foreman #{app} processes -----" - engine.processes.values.inject(1) do |index, process| + engine.processes.inject(1) do |index, process| 1.upto(concurrency[process.name]) do |num| id = app.slice(0, 2).upcase + sprintf("%02d", index) port = engine.port_for(process, num, options[:port])