diff --git a/awscli/customizations/route53resourceid.py b/awscli/customizations/route53resourceid.py deleted file mode 100644 index 8c6130cfabff..000000000000 --- a/awscli/customizations/route53resourceid.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You -# may not use this file except in compliance with the License. A copy of -# the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is -# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF -# ANY KIND, either express or implied. See the License for the specific -# language governing permissions and limitations under the License. -import logging - - -logger = logging.getLogger(__name__) - - -def register_resource_id(cli): - cli.register('process-cli-arg.route53.*', - _check_for_resource_id) - - -def _check_for_resource_id(param, value, **kwargs): - if param.name in ['ResourceId', 'DelegationSetId']: - orig_value = value - value = value.split('/')[-1] - logger.debug('%s %s -> %s', param.name, orig_value, value) - return value diff --git a/awscli/handlers.py b/awscli/handlers.py index f4429cf86620..5761a9fc1435 100644 --- a/awscli/handlers.py +++ b/awscli/handlers.py @@ -36,7 +36,6 @@ from awscli.customizations.iamvirtmfa import IAMVMFAWrapper from awscli.customizations.argrename import register_arg_renames from awscli.customizations.dryrundocs import register_dryrun_docs -from awscli.customizations.route53resourceid import register_resource_id from awscli.customizations.configure import register_configure_cmd from awscli.customizations.cloudtrail import initialize as cloudtrail_init from awscli.customizations.toplevelbool import register_bool_params @@ -102,7 +101,6 @@ def awscli_initialize(event_handlers): IAMVMFAWrapper(event_handlers) register_arg_renames(event_handlers) register_dryrun_docs(event_handlers) - register_resource_id(event_handlers) register_configure_cmd(event_handlers) cloudtrail_init(event_handlers) register_bool_params(event_handlers)