Remove unnecessary root addition in get_staging_dir_info function.

The code changes remove the unnecessary addition of roots to ctx_data in the get_staging_dir_info function.
This commit is contained in:
Jakub Jezek 2024-10-24 14:48:47 +02:00
parent ea4ec677ca
commit 1eb0904583
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -169,8 +169,6 @@ def get_staging_dir_info(
ctx_data = get_template_data(
project_entity, folder_entity, task_entity, host_name
)
# add roots to ctx_data
ctx_data["root"] = anatomy.roots
# add additional data
ctx_data.update({
@ -178,7 +176,7 @@ def get_staging_dir_info(
"type": product_type,
"name": product_name
},
"host": host_name,
"root": anatomy.roots
})
# add additional template formatting data