Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Fixed Network Type issue #5

Merged
merged 2 commits into from
May 24, 2017
Merged

Fixed Network Type issue #5

merged 2 commits into from
May 24, 2017

Conversation

istairbn
Copy link
Collaborator

VMNetwork objects are being passed as "Option" type rather than "Network" Type.
Therefore the matching failed and the default network was always being used.
Matching on the name instead - which fixes the workflow.

Unsure if this is an implementation specific issue or not.

VMNetwork objects being passed as "Option" type rather than "Network" Type. 
Matching on the name instead
} elseif ($P.DefaultValue) {
} elseif ($P.Name -eq 'VMRoleNetworkRef') {
Add-Member -InputObject $Output -MemberType NoteProperty -Name $P.Name -Value $($VMNetwork.Name) -Force
}elseif ($P.DefaultValue) {
Copy link
Owner

Choose a reason for hiding this comment

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

Could you re-add the space } elseif ($P.DefaultValue)

@bgelens bgelens self-assigned this May 23, 2017
@bgelens
Copy link
Owner

bgelens commented May 23, 2017

Thanks for this update! Could you address my comment so I can merge it in one go :) Thanks

Missing space
@istairbn
Copy link
Collaborator Author

Oops - typo fixed

@bgelens bgelens merged commit b3d321e into bgelens:master May 24, 2017
@bgelens
Copy link
Owner

bgelens commented May 24, 2017

Thanks! I'll merge and publish a new version to the gallery this week

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants