Allow event stream over api proxy (#285)

* Allow event stream over api proxy

* fix lint

* fix lint

* cleanup code

* fix bug

* fix prepare

* Fix stream bug

* fix api request
This commit is contained in:
Pascal Vizeli
2017-12-24 15:04:16 +01:00
committed by GitHub
parent 63d82ce03e
commit d7df423deb
9 changed files with 58 additions and 19 deletions

View File

@@ -29,11 +29,12 @@ def validate_timezone(timezone):
return timezone
# pylint: disable=inconsistent-return-statements
def convert_to_docker_ports(data):
"""Convert data into docker port list."""
# dynamic ports
if data is None:
return
return None
# single port
if isinstance(data, int):