Skip to content

[Privatedns] az network private-dns zone import: Raise FileOperationError instead of FileNotFoundError if zone file doesn't exist #15874

Merged
haroldrandom merged 5 commits intoAzure:devfrom
haroldrandom:fix-network-private-dns-import-nonactionable-bugs
Nov 12, 2020
Merged

[Privatedns] az network private-dns zone import: Raise FileOperationError instead of FileNotFoundError if zone file doesn't exist #15874
haroldrandom merged 5 commits intoAzure:devfrom
haroldrandom:fix-network-private-dns-import-nonactionable-bugs

Conversation

@haroldrandom
Copy link
Contributor

@haroldrandom haroldrandom commented Nov 11, 2020

Description

Fix the top 1 non-actionable bug (#14984)
image

Raise FileOperationError instead of FileNotFoundError if the zone file doesn't exist and catch more expected file operation related errors

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@haroldrandom haroldrandom self-assigned this Nov 11, 2020
@haroldrandom haroldrandom added this to the S178 milestone Nov 11, 2020
@haroldrandom haroldrandom added the Network az network vnet/lb/nic/dns/etc... label Nov 11, 2020
@haroldrandom haroldrandom marked this pull request as ready for review November 11, 2020 09:15
Copy link
Member

@msyyc msyyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

except PermissionError:
raise FileOperationError("Permission denied: " + str(file_name))
except OSError as e:
raise UnknownError(e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need UnclassifieduserFault here, but wait me to get this PR #15865 merged first

Harold Zeng added 2 commits November 12, 2020 02:43
…ithub.com:haroldrandom/azure-cli into fix-network-private-dns-import-nonactionable-bugs
@haroldrandom haroldrandom changed the title [Privatedns] az network private-dns zone import: Raise FileOperationError instead of FileNotFoundError if zone file doesn't exist [PrivateDns] az network private-dns zone import: Raise FileOperationError instead of FileNotFoundError if zone file doesn't exist Nov 12, 2020
@haroldrandom haroldrandom changed the title [PrivateDns] az network private-dns zone import: Raise FileOperationError instead of FileNotFoundError if zone file doesn't exist [Privatedns] az network private-dns zone import: Raise FileOperationError instead of FileNotFoundError if zone file doesn't exist Nov 12, 2020
@haroldrandom haroldrandom merged commit 1a41c62 into Azure:dev Nov 12, 2020
@haroldrandom haroldrandom deleted the fix-network-private-dns-import-nonactionable-bugs branch November 12, 2020 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Error Handling Network az network vnet/lb/nic/dns/etc...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments