From ec97cda72f8fd27cb1dcb43e5d5d2c22f9c20c6b Mon Sep 17 00:00:00 2001 From: "michael.richey" Date: Fri, 27 Sep 2024 09:24:20 -0400 Subject: [PATCH] Remove accidentally committed files --- datadog_sync/commands/__init__.py | 1 - datadog_sync/commands/migrate.py | 52 ------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 datadog_sync/commands/migrate.py diff --git a/datadog_sync/commands/__init__.py b/datadog_sync/commands/__init__.py index 438bce28..eb0dd17a 100644 --- a/datadog_sync/commands/__init__.py +++ b/datadog_sync/commands/__init__.py @@ -6,7 +6,6 @@ from datadog_sync.commands.sync import sync from datadog_sync.commands._import import _import from datadog_sync.commands.diffs import diffs -from datadog_sync.commands.migrate import migrate ALL_COMMANDS = [ diff --git a/datadog_sync/commands/migrate.py b/datadog_sync/commands/migrate.py deleted file mode 100644 index c2dc3dc7..00000000 --- a/datadog_sync/commands/migrate.py +++ /dev/null @@ -1,52 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed -# under the 3-clause BSD style license (see LICENSE). -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019 Datadog, Inc. - -from click import command - -from datadog_sync.commands.shared.options import ( - common_options, - CustomOptionClass, - destination_auth_options, - non_import_common_options, - source_auth_options, -) -from datadog_sync.constants import Command -from datadog_sync.commands.shared.utils import run_cmd - - - -@command(Command.IMPORT.value, short_help="Import Datadog resources.") -@source_auth_options -@common_options -def _import(**kwargs): - """Import Datadog resources.""" - run_cmd(Command.IMPORT, **kwargs) - - -@command(Command.SYNC.value, short_help="Sync Datadog resources to destination.") -@source_auth_options -@destination_auth_options -@common_options -@non_import_common_options -@option( - "--force-missing-dependencies", - required=False, - is_flag=True, - default=False, - help="Force importing and syncing resources that could be potential dependencies to the requested resources.", - cls=CustomOptionClass, -) -@option( - "--create-global-downtime", - required=False, - is_flag=True, - default=False, - help="Scheduled downtime is meant to be removed during failover when " - "user determines monitors have enough telemetry to trigger appropriately.", - cls=CustomOptionClass, -) -def sync(**kwargs): - """Sync Datadog resources to destination.""" - run_cmd(Command.SYNC, **kwargs)