From 0f9461b00f849f521958d715f361c35a5be2a7ab Mon Sep 17 00:00:00 2001 From: "michael.richey" Date: Tue, 15 Oct 2024 10:24:01 -0400 Subject: [PATCH] Better comments --- datadog_sync/utils/configuration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datadog_sync/utils/configuration.py b/datadog_sync/utils/configuration.py index 3692ee70..32b9047e 100644 --- a/datadog_sync/utils/configuration.py +++ b/datadog_sync/utils/configuration.py @@ -152,9 +152,9 @@ def build_config(cmd: Command, **kwargs: Optional[Any]) -> Configuration: source_resources_path = kwargs.get(SOURCE_PATH_PARAM, SOURCE_PATH_DEFAULT) destination_resources_path = kwargs.get(DESTINATION_PATH_PARAM, DESTINATION_PATH_DEFAULT) - # If backing up a destination for before reset then: - # the source of the backup is the destination - # the path for that backup is different + # Confusing, but the source for the import needs to be the destination of the reset + # If a destination is going to be reset then a backup needs to be preformed. A back up + # is just an import, the source of that import is the destination of the reset. if cmd == Command.RESET: cleanup = TRUE source_client = CustomClient(destination_api_url, destination_auth, retry_timeout, timeout, send_metrics)