Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
string_types
  • Loading branch information
jiasli committed Mar 19, 2021
commit c9d244f1deacdd9eaca0f8e5253e1f7aa494820e
4 changes: 2 additions & 2 deletions src/azure-cli-core/azure/cli/core/commands/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def handler(args): # pylint: disable=too-many-branches,too-many-statements

def _cli_wait_command(context, name, getter_op, custom_command=False, **kwargs):

if not isinstance(getter_op, string_types):
if not isinstance(getter_op, str):
raise ValueError("Getter operation must be a string. Got '{}'".format(type(getter_op)))

factory = _get_client_factory(name, custom_command=custom_command, **kwargs)
Expand Down Expand Up @@ -718,7 +718,7 @@ def handler(args):

def _cli_show_command(context, name, getter_op, custom_command=False, **kwargs):

if not isinstance(getter_op, string_types):
if not isinstance(getter_op, str):
raise ValueError("Getter operation must be a string. Got '{}'".format(type(getter_op)))

factory = _get_client_factory(name, custom_command=custom_command, **kwargs)
Expand Down