Fix reference to unused e to satisfy rubocop

This commit is contained in:
kirby@puppetlabs.com 2020-03-17 11:24:03 -07:00
parent 283dea62a7
commit 7597185fa4
2 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,9 @@ services:
- type: bind
source: ${PWD}/vmpooler.yaml
target: /etc/vmpooler/vmpooler.yaml
- type: bind
source: ${PWD}/providers.yaml
target: /etc/vmpooler/providers.yaml
ports:
- "4567:4567"
networks:
@ -17,6 +20,9 @@ services:
- VMPOOLER_DEBUG=true # for use of dummy auth
- VMPOOLER_CONFIG_FILE=/etc/vmpooler/vmpooler.yaml
- REDIS_SERVER=redislocal
- EXTRA_CONFIG=/etc/vmpooler/providers.yaml
- LOGFILE=/dev/stdout
- LDAP_PORT=636
image: vmpooler-local
depends_on:
- redislocal

View file

@ -822,7 +822,7 @@ module Vmpooler
loop_count += 1
end
end
rescue Redis::CannotConnectError => e
rescue Redis::CannotConnectError
raise
rescue StandardError => e
$logger.log('s', "[!] [#{pool['name']}] Error while checking the pool: #{e}")