mirror of
https://github.com/clearml/clearml
synced 2025-05-07 06:14:31 +00:00
Fix getattr will throw exception (issue #426)
This commit is contained in:
parent
5295708e18
commit
922e8b5e74
@ -406,7 +406,7 @@ class ClearmlJob(object):
|
|||||||
# currently we do not add the docker image to the hash (only args and setup script),
|
# currently we do not add the docker image to the hash (only args and setup script),
|
||||||
# because default docker image will cause the step to change
|
# because default docker image will cause the step to change
|
||||||
docker = None
|
docker = None
|
||||||
if getattr(task.data, 'container'):
|
if hasattr(task.data, 'container'):
|
||||||
docker = dict(**(task.data.container or dict()))
|
docker = dict(**(task.data.container or dict()))
|
||||||
docker.pop('image', None)
|
docker.pop('image', None)
|
||||||
|
|
||||||
|
@ -83,6 +83,10 @@ class Session(TokenManager):
|
|||||||
def secret_key(self):
|
def secret_key(self):
|
||||||
return self.__secret_key
|
return self.__secret_key
|
||||||
|
|
||||||
|
@property
|
||||||
|
def auth_token(self):
|
||||||
|
return self.__auth_token
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def host(self):
|
def host(self):
|
||||||
return self.__host
|
return self.__host
|
||||||
|
Loading…
Reference in New Issue
Block a user