Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commonids: add common ids for SubnetId and VirtualNetworkId #167

Merged
merged 2 commits into from
May 9, 2023

Conversation

stephybun
Copy link
Member

@stephybun stephybun commented May 8, 2023

Closes #162

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

LGTM 👍

id := SubnetId{}

if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok {
return nil, fmt.Errorf("the segment 'subscriptionId' was not found in the resource id %q", input)
Copy link
Contributor

Choose a reason for hiding this comment

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

(for me) these'll want updating as of #155

var ok bool
id := VirtualNetworkId{}

if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok {
Copy link
Contributor

Choose a reason for hiding this comment

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

(for me) these'll want updating as of #155

@tombuildsstuff tombuildsstuff merged commit a9d759f into main May 9, 2023
@tombuildsstuff tombuildsstuff deleted the f/common-id-for-subnet-virtual-networks branch May 9, 2023 14:23
@tombuildsstuff tombuildsstuff added this to the 0.56.0 milestone May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Common IDs for Virtual Network and Subnet
2 participants