From 04f050946881c401bacd36135366289bab77dec8 Mon Sep 17 00:00:00 2001 From: jiasli <4003950+jiasli@users.noreply.github.com> Date: Fri, 7 May 2021 15:53:46 +0800 Subject: [PATCH] fix unused-import --- pylintrc | 1 - .../azure/cli/command_modules/cdn/custom/custom_waf.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/pylintrc b/pylintrc index 1b7461be51c..bec3c1dd92c 100644 --- a/pylintrc +++ b/pylintrc @@ -36,7 +36,6 @@ disable= too-many-lines, unnecessary-comprehension, unrecognized-inline-option, - unused-import, use-a-generator, using-constant-test, wrong-import-order, diff --git a/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_waf.py b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_waf.py index 94246a3cab9..958604752f5 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_waf.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_waf.py @@ -21,8 +21,6 @@ def show_endpoint_waf_policy_link(client: EndpointsOperations, profile_name: str, endpoint_name: str): - from azure.mgmt.cdn.models import (EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink) - link = client.get(resource_group_name, profile_name, endpoint_name).web_application_firewall_policy_link if link is not None: return link