Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
Next Next commit
Merge branch 'dev' of https://github.com/Azure/azure-cli into vkukke/…
…storagequeuemsgttl
  • Loading branch information
VidyaKukke committed Mar 25, 2021
commit e4f5977c2d77e4b179bfbc46b13407f9216529ed
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@

storage_queue_msg_ttl = CLIArgumentType(
help="Storage queue message time to live in seconds.",
type=int,
options_list=['--storage-queue-msg-ttl', '--qttl'],
is_preview=True
)
Expand Down
10 changes: 5 additions & 5 deletions src/azure-cli/azure/cli/command_modules/eventgrid/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def cli_topic_create_or_update(
client,
resource_group_name,
topic_name,
location,
location=None,
tags=None,
input_schema=EVENTGRID_SCHEMA,
input_mapping_fields=None,
Expand Down Expand Up @@ -379,8 +379,8 @@ def cli_partner_namespace_create_or_update(
client,
resource_group_name,
partner_namespace_name,
location=None,
partner_registration_id,
location=None,
tags=None):

partner_namespace_info = PartnerNamespace(
Expand Down Expand Up @@ -567,9 +567,9 @@ def cli_system_topic_create_or_update(
client,
resource_group_name,
system_topic_name,
location=None,
topic_type,
source,
location=None,
tags=None,
identity=None):

Expand Down Expand Up @@ -974,7 +974,7 @@ def _get_event_subscription_info( # pylint: disable=too-many-locals,too-many-
raise CLIError('usage error: --storage-queue-msg-ttl is only applicable for endpoint type StorageQueue.')

if storage_queue_msg_ttl is not None:
storage_queue_msg_ttl = int(storage_queue_msg_ttl)
storage_queue_msg_ttl = storage_queue_msg_ttl

destination = None
if endpoint is not None:
Expand Down Expand Up @@ -1274,7 +1274,7 @@ def _update_event_subscription_internal( # pylint: disable=too-many-locals,too-
raise CLIError('Invalid usage: Since --endpoint-type is specified, a valid endpoint must also be specified.')

if storage_queue_msg_ttl is not None:
storage_queue_msg_ttl = int(storage_queue_msg_ttl)
storage_queue_msg_ttl = storage_queue_msg_ttl

tennant_id = None
application_id = None
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.