diff --git a/containers/argo_utils/code/argo_python/__init__.py b/containers/argo_utils/code/argo_python/__init__.py index ec613af6..a460652e 100644 --- a/containers/argo_utils/code/argo_python/__init__.py +++ b/containers/argo_utils/code/argo_python/__init__.py @@ -45,7 +45,7 @@ def create_secret(self, name: str, data: Dict, persist=False) -> str: try: # if KUBERNETES_POD_UID is not explicitly defined in the container env, pod get permissions will need # be set for the service account running this workflow - owner_name = os.environ["DEVICE_ID"] + owner_name = os.environ["HOSTNAME"] owner_id = os.getenv("KUBERNETES_POD_UID") if not owner_id: owner_metadata = self.get_pod(owner_name)