Skip to content

Commit

Permalink
fix: do not set dest_folder when removing resources
Browse files Browse the repository at this point in the history
we could use _get_destination_folder here but when is_removed is set to
True, dest_folder is not used

fixes #268
  • Loading branch information
mario-steinhoff-gcx committed May 17, 2023
1 parent ef8c047 commit 52249ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ def list_resources(label, label_value, target_folder, request_url, request_metho
logger.debug(f"Removing {resource}: {metadata.namespace}/{metadata.name}")

if resource == RESOURCE_CONFIGMAP:
files_changed |= _process_config_map(dest_folder, item, resource, unique_filenames, enable_5xx, True)
files_changed |= _process_config_map(None, item, resource, unique_filenames, enable_5xx, True)
else:
files_changed = _process_secret(dest_folder, item, resource, unique_filenames, enable_5xx, True)
files_changed = _process_secret(None, item, resource, unique_filenames, enable_5xx, True)

if script and files_changed:
execute(script)
Expand Down

0 comments on commit 52249ed

Please sign in to comment.