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