docker-compose + exception fix
This commit is contained in:
parent
c1d455efb0
commit
e80821e6da
|
@ -76,6 +76,8 @@ def send_command(connection: ConnectHandler, command: str) -> str:
|
|||
result: str = connection.send_command(command, read_timeout=30)
|
||||
except exceptions.NetmikoTimeoutException:
|
||||
result = "NetmikoTimeoutException"
|
||||
except exceptions.ReadTimeout:
|
||||
result = "NetmikoTimeoutException"
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
version: '3.3'
|
||||
|
||||
services:
|
||||
|
||||
net-backup:
|
||||
image: git.sm8255082.ru/osnova/net-backup:1.0.0
|
||||
restart: always
|
||||
image: git.sm8255082.ru/osnova/net-backup:1.1.0
|
||||
restart: "no"
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
- ./config:/app/config
|
||||
|
@ -12,7 +10,9 @@ services:
|
|||
environment:
|
||||
- TZ=Europe/Moscow
|
||||
- NET_DEV_USER=admin
|
||||
- NET_DEV_DOMAIN=local
|
||||
#- NET_DEV_DOMAIN=local
|
||||
- NET_DEV_PWD=password
|
||||
- GIT_USERNAME=git_user
|
||||
- GIT_TOKEN=bla-bla-lba
|
||||
#- GIT_USERNAME=git_user
|
||||
#- GIT_TOKEN=bla-bla-lba
|
||||
#- MAIL_USER=mail_user
|
||||
#- MAIL_PWD=bla-bla-lba
|
Loading…
Reference in New Issue