Skip to content
Merged
Prev Previous commit
Next Next commit
fix style
  • Loading branch information
cataggar committed Jul 29, 2021
commit f26da082c2951db6edd5135172c081f7abe6752d
7 changes: 4 additions & 3 deletions src/vmware/azext_vmware/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=line-too-long, protected-access, too-few-public-methods

import argparse
from typing import Dict, List
Expand Down Expand Up @@ -35,8 +36,8 @@ def __call__(self, parser, namespace, values, option_string=None):

def script_execution_parameters(values: List[str]) -> ScriptExecutionParameter:
values = dict(map(lambda x: x.split('=', 1), values))
type = require(values, "type")
type_lower = type.lower()
tp = require(values, "type")
type_lower = tp.lower()

if type_lower == ScriptExecutionParameterType.VALUE.lower():
try:
Expand All @@ -57,7 +58,7 @@ def script_execution_parameters(values: List[str]) -> ScriptExecutionParameter:
raise CLIError('parsing {} script execution parameter'.format(ScriptExecutionParameterType.CREDENTIAL)) from error

else:
raise CLIError('script execution paramater type \'{}\' not matched'.format(type))
raise CLIError('script execution paramater type \'{}\' not matched'.format(tp))


def require(values: Dict[str, str], key: str) -> str:
Expand Down