Skip to content

Add Update to placement resourceproviders#2359

Merged
mandre merged 4 commits intogophercloud:masterfrom
nikParasyr:placement_rp_update
Mar 18, 2022
Merged

Add Update to placement resourceproviders#2359
mandre merged 4 commits intogophercloud:masterfrom
nikParasyr:placement_rp_update

Conversation

@nikParasyr
Copy link
Copy Markdown
Contributor

Docs
Relates to: #526

PR-train: requires #2358

@nikParasyr nikParasyr force-pushed the placement_rp_update branch 2 times, most recently from b98ad69 to 466a6e0 Compare February 23, 2022 16:41
@coveralls
Copy link
Copy Markdown

coveralls commented Feb 23, 2022

Coverage Status

Coverage increased (+0.01%) to 79.906% when pulling 5ed0361 on nikParasyr:placement_rp_update into beef396 on gophercloud:master.

@nikParasyr
Copy link
Copy Markdown
Contributor Author

nikParasyr commented Feb 23, 2022

hmmm theopenlab-ci is not in the check-list although i think its running

@nikParasyr
Copy link
Copy Markdown
Contributor Author

recheck

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Feb 23, 2022

Build succeeded.

Copy link
Copy Markdown
Contributor

@mandre mandre left a comment

Choose a reason for hiding this comment

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

Final patch and it all LGTM. Ready to merge the full patch stream IMO.

// ToResourceProviderUpdateMap constructs a request body from UpdateOpts.
func (opts UpdateOpts) ToResourceProviderUpdateMap() (map[string]interface{}, error) {
b, err := gophercloud.BuildRequestBody(opts, "")
if err != nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: that shouldn't be necessary as b would always be nil when gophercloud.BuildRequestBody() returns an error.

The body of this function could simply be return gophercloud.BuildRequestBody(opts, "")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed :) ty

@nikParasyr nikParasyr force-pushed the placement_rp_update branch from 466a6e0 to 5ed0361 Compare March 18, 2022 07:40
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Mar 18, 2022

Build succeeded.

@mandre mandre merged commit c83a0ba into gophercloud:master Mar 18, 2022
@nikParasyr nikParasyr deleted the placement_rp_update branch October 13, 2022 12:53
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.

3 participants