mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 00:56:53 +00:00
Fix None config file in session causes k8s agent to raise exception
This commit is contained in:
parent
46ded2864d
commit
7f5b3c8df4
@ -493,7 +493,7 @@ class K8sIntegration(Worker):
|
||||
|
||||
# noinspection PyProtectedMember
|
||||
config_content = (
|
||||
self.conf_file_content or Path(session._config_file).read_text() or ""
|
||||
self.conf_file_content or (session._config_file and Path(session._config_file).read_text()) or ""
|
||||
) + '\n{}\n'.format('\n'.join(x for x in extra_config_values if x))
|
||||
|
||||
hocon_config_encoded = config_content.encode("ascii")
|
||||
|
Loading…
Reference in New Issue
Block a user