1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Fixed get_env_variables function

This commit is contained in:
samson0v
2022-09-07 15:29:53 +03:00
parent b2e3dc705e
commit bcd51e1640

View File

@@ -91,7 +91,7 @@ def load_file(path_to_file):
def get_env_variables():
env_variables = {
'host': environ.get('host'),
'port': int(environ.get('port')) or None,
'port': int(environ.get('port')) if environ.get('port') else None,
'accessToken': environ.get('accessToken'),
'caCert': environ.get('caCert'),
'privateKey': environ.get('privateKey'),