Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ def unregister_container(cmd, client, vault_name, resource_group_name, container
containrs_client = backup_protection_containers_cf(cmd.cli_ctx)
container = show_container(cmd, containrs_client, container_name, resource_group_name, vault_name,
backup_management_type)
if container is None:
container = show_container(cmd, containrs_client, container_name, resource_group_name, vault_name,
backup_management_type, status="SoftDeleted")
container_name = container.name
container_friendly_name = container.properties.friendly_name

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,11 @@ def replace_min_value_in_subtask(response):
# For a task in progress: replace min_value in start and end times with null.
tasks_list = response.properties.extended_info.tasks_list
for task in tasks_list:
if task.start_time == datetime.min:
task.start_time = None
if task.end_time == datetime.min:
task.end_time = None
if hasattr(task, 'start_time') and hasattr(task, 'end_time'):
if task.start_time == datetime.min:
task.start_time = None
if task.end_time == datetime.min:
task.end_time = None
return response


Expand Down