Oefenweb/ansible-haproxy

Also add nbproc when it is 1

tersmitten opened this issue · 0 comments

This prevents:

# haproxyctl show health
/var/lib/ansible/haproxyctl/checkouts/haproxyctl/lib/haproxyctl/environment.rb:42:in `nbproc': undefined method `[]' for nil:NilClass (NoMethodError)
    from /var/lib/ansible/haproxyctl/checkouts/haproxyctl/lib/haproxyctl/environment.rb:52:in `socket'
    from /var/lib/ansible/haproxyctl/checkouts/haproxyctl/lib/haproxyctl.rb:55:in `unixsock'
    from /usr/local/bin/haproxyctl:105:in `<main>'