From 056ca00f76f9bc3a20d67562330ac69229cde594 Mon Sep 17 00:00:00 2001 From: Jason Barnett Date: Wed, 9 Aug 2023 14:41:57 -0600 Subject: [PATCH] add missing import --- .../automationworker/3.x/worker/hybridworker.py | 5 +++-- .../automationworker/worker/hybridworker.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Providers/nxOMSAutomationWorker/automationworker/3.x/worker/hybridworker.py b/Providers/nxOMSAutomationWorker/automationworker/3.x/worker/hybridworker.py index 498c14f2e..e84ea472d 100644 --- a/Providers/nxOMSAutomationWorker/automationworker/3.x/worker/hybridworker.py +++ b/Providers/nxOMSAutomationWorker/automationworker/3.x/worker/hybridworker.py @@ -12,6 +12,7 @@ import threading import time import traceback +import util import workerpollingfrequency # import worker module after linuxutil.daemonize() call @@ -188,7 +189,7 @@ def assert_environment_prerequisite(): if proxy_conf_path != configuration.DEFAULT_PROXY_CONFIGURATION_PATH and os.path.isfile(proxy_conf_path): if util.assert_file_read_permission(proxy_conf_path) is False: raise InvalidFilePermissionException(proxy_conf_path) - + @staticmethod def construct_jrds_msi_endpoint(sandbox_id): @@ -350,7 +351,7 @@ def main(): import tracer from httpclientfactory import HttpClientFactory from jrdsclient import JRDSClient - from workerexception import * + from workerexception import * import util main() except: diff --git a/Providers/nxOMSAutomationWorker/automationworker/worker/hybridworker.py b/Providers/nxOMSAutomationWorker/automationworker/worker/hybridworker.py index b17b63e86..c3b6a0ac3 100644 --- a/Providers/nxOMSAutomationWorker/automationworker/worker/hybridworker.py +++ b/Providers/nxOMSAutomationWorker/automationworker/worker/hybridworker.py @@ -11,6 +11,7 @@ import threading import time import traceback +import util import workerpollingfrequency # import worker module after linuxutil.daemonize() call @@ -187,7 +188,7 @@ def assert_environment_prerequisite(): if proxy_conf_path != configuration.DEFAULT_PROXY_CONFIGURATION_PATH and os.path.isfile(proxy_conf_path): if util.assert_file_read_permission(proxy_conf_path) is False: raise InvalidFilePermissionException(proxy_conf_path) - + @staticmethod def construct_jrds_msi_endpoint(sandbox_id): url = configuration.get_jrds_base_uri() + "/automationAccounts/" + configuration.get_account_id() + \