Improve trains-init configuration wizard

This commit is contained in:
allegroai
2019-11-23 01:25:17 +02:00
parent 9f59346c33
commit 7af2d0c9d7
2 changed files with 25 additions and 9 deletions

View File

@@ -441,7 +441,7 @@ class Session(TokenManager):
# return default
host = cls.get_api_server_host(config)
if host == cls.default_host:
if host == cls.default_host and cls.default_web:
return cls.default_web
# compose ourselves
@@ -468,7 +468,7 @@ class Session(TokenManager):
# return default
host = cls.get_api_server_host(config)
if host == cls.default_host:
if host == cls.default_host and cls.default_files:
return cls.default_files
# compose ourselves