quickfix: backend: docker: fix loading ips for watch
This commit is contained in:
parent
edf6b9ded7
commit
9c99d67b1d
@ -380,7 +380,11 @@ class DockerManager:
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
crawl.watchIPs = [container.attrs["NetworkSettings"]["IPAddress"]]
|
crawl.watchIPs = [
|
||||||
|
container["NetworkSettings"]["Networks"][self.default_network][
|
||||||
|
"IPAddress"
|
||||||
|
]
|
||||||
|
]
|
||||||
except:
|
except:
|
||||||
crawl.watchIPs = []
|
crawl.watchIPs = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user