Skip to content

Commit

Permalink
[Rest] Make --method -m optional (#11843)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored Jan 15, 2020
1 parent 8136f7f commit 78112a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/resource/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@ def list_resource_links(cmd, scope=None, filter_string=None):
# endregion


def rest_call(cmd, method, uri, headers=None, uri_parameters=None,
def rest_call(cmd, uri, method=None, headers=None, uri_parameters=None,
body=None, skip_authorization_header=False, resource=None, output_file=None):
from azure.cli.core.util import send_raw_request
r = send_raw_request(cmd.cli_ctx, method, uri, headers, uri_parameters, body,
Expand Down

0 comments on commit 78112a0

Please sign in to comment.