Skip to content

Commit

Permalink
Better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-richey committed Oct 15, 2024
1 parent 25f2f0d commit 0f9461b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datadog_sync/utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f9461b

Please sign in to comment.