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

Added vdc meta data functions #203

Merged
merged 12 commits into from
Jul 1, 2019
Merged

Added vdc meta data functions #203

merged 12 commits into from
Jul 1, 2019

Conversation

vbauzys
Copy link
Contributor

@vbauzys vbauzys commented Jun 14, 2019

Ref: https://github.com/terraform-providers/terraform-provider-vcd/issues/238

Functions for handling meta data for vDC.
Also from previous research added developed function for future - QueryOrgVdcNetworkByName

@vbauzys vbauzys requested review from dataclouder, lvirbalas and Didainius and removed request for dataclouder and lvirbalas June 14, 2019 13:13
@vbauzys vbauzys self-assigned this Jun 14, 2019
@vbauzys vbauzys requested a review from lvirbalas June 14, 2019 13:13
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Just one question :)

govcd/system.go Show resolved Hide resolved
govcd/vdc.go Outdated Show resolved Hide resolved
Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

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

Some small changes needed

govcd/metadata.go Show resolved Hide resolved
govcd/metadata_test.go Outdated Show resolved Hide resolved
govcd/metadata_test.go Show resolved Hide resolved
check.Assert(err, IsNil)
for _, k := range metadata.MetadataEntry {
if k.Key == "key2" {
check.Errorf("metadata.MetadataEntry should not contain key: %s", k)
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of k, it should be k.Key

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

govcd/metadata_test.go Show resolved Hide resolved
govcd/metadata_test.go Outdated Show resolved Hide resolved
govcd/metadata_test.go Show resolved Hide resolved
govcd/metadata_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

Looks good in general. A few minor comments from my side.

govcd/metadata_test.go Outdated Show resolved Hide resolved
govcd/system_test.go Show resolved Hide resolved
govcd/metadata.go Show resolved Hide resolved
govcd/metadata_test.go Show resolved Hide resolved
govcd/metadata_test.go Show resolved Hide resolved
govcd/metadata_test.go Show resolved Hide resolved
vbauzys and others added 3 commits June 28, 2019 12:44
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

LGTM

vbauzys added 4 commits July 1, 2019 13:34
Signed-off-by: Vaidotas Bauzys <[email protected]>

# Conflicts:
#	CHANGELOG.md
#	govcd/system.go
#	types/v56/types.go
Signed-off-by: Vaidotas Bauzys <[email protected]>

# Conflicts:
#	CHANGELOG.md
#	govcd/system.go
#	types/v56/types.go
Signed-off-by: Vaidotas Bauzys <[email protected]>
…ector into vdc_metadata

Signed-off-by: Vaidotas Bauzys <[email protected]>

# Conflicts:
#	CHANGELOG.md
Signed-off-by: Vaidotas Bauzys <[email protected]>
vbauzys added 2 commits July 1, 2019 16:03
Signed-off-by: Vaidotas Bauzys <[email protected]>
Signed-off-by: Vaidotas Bauzys <[email protected]>
Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

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

LGTM

@vbauzys vbauzys merged commit 22813ce into vmware:master Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants