Skip to content

Commit

Permalink
No copy for string.
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Sep 26, 2024
1 parent ece7441 commit 15a410e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/api_pods_podid.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def get_derived_pod(pod_id):
pods_env = Password.db_get_with_pk(pod.pod_id, pod.tenant_id, pod.site_id)
pods_env = pods_env.dict()
for key, val in final_pod.environment_variables.items():
new_val = val.copy()
new_val = val
if isinstance(val, str):
# regex to create list of [<<TAPIS_*>> strings, str of inner variable without >><<]
matches = re.findall(r'<<TAPIS_(.*?)>>', val)
Expand Down
2 changes: 1 addition & 1 deletion service/kubernetes_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def start_generic_pod(input_pod, revision: int):
pods_env = pods_env.dict()
if final_pod.environment_variables:
for key, val in final_pod.environment_variables.items():
new_val = val.copy()
new_val = val
if isinstance(val, str):
# regex to create list of [<<TAPIS_*>> strings, str of inner variable without >><<]
matches = re.findall(r'<<TAPIS_(.*?)>>', val)
Expand Down

0 comments on commit 15a410e

Please sign in to comment.