Skip to content

Commit a59780a

Browse files
author
Dennis Pattmann
committed
Bugfix - Fix wrong option parameter
1 parent dbf7e80 commit a59780a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/puppet_forge_server/server.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def announce(options, backends)
7171
options.default = 'default'
7272
@log.info " +- Daemonizing: #{options[:daemonize]}"
7373
@log.info " |- Port: #{options[:port]}"
74-
@log.info " |- Host: #{options[:hostname]}"
74+
@log.info " |- Host: #{options[:host]}"
7575
@log.info " |- Pidfile: #{options[:pidfile]}" if options[:pidfile]
7676
@log.info " |- Server: #{options[:server]}"
7777
@log.info ' `- Backends:'
@@ -84,7 +84,7 @@ def start(server, options)
8484
FileUtils.mkdir_p File.dirname(options[:pidfile]) if options[:pidfile]
8585
Rack::Server.start(
8686
:app => server,
87-
:Host => options[:hostname],
87+
:Host => options[:host],
8888
:Port => options[:port],
8989
:server => options[:server],
9090
:daemonize => options[:daemonize],

spec/unit/http/http_client_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"Connection: close\r\n"
2525
socket.print "\r\n"
2626
# To simulate network lag
27-
sleep 0.01
27+
sleep 0.05
2828
socket.print response
2929
socket.close
3030
end

0 commit comments

Comments
 (0)