Skip to content

Modify PhysicalDisks's type to support physical disks hints#1982

Merged
jtopjian merged 1 commit intogophercloud:masterfrom
zouy414:master
Jun 24, 2020
Merged

Modify PhysicalDisks's type to support physical disks hints#1982
jtopjian merged 1 commit intogophercloud:masterfrom
zouy414:master

Conversation

@zouy414
Copy link
Copy Markdown
Contributor

@zouy414 zouy414 commented Jun 22, 2020

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 22, 2020

Coverage Status

Coverage increased (+0.0008%) to 79.379% when pulling 0977879 on Hellcatlk:master into 1f9e326 on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Jun 22, 2020

Build succeeded.

@jtopjian
Copy link
Copy Markdown
Contributor

@Hellcatlk Thanks for submitting this.

Per our contributor's guide, we also need to see the API service code that proves this change is valid. Let me know if you have any questions or need any help.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

LGTM - thank you!

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

Sorry - 1 change. Please let me know if you have any questions.

go.mod Outdated
@@ -1,5 +1,7 @@
module github.com/gophercloud/gophercloud

go 1.14
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.

whoops - actually, I just noticed that Travis is flagging an error and I think it's due to this. Can you remove this?

We can probably get rid of the Go 1.11 tests altogether, but I will do that in a separate PR when I get some time. Until then, removing this will be the fastest way.

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.

Sorry , I forget delete it. This is auto added by IDE.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Jun 23, 2020

Build failed.

@zouy414 zouy414 changed the title Modify PhysicalDisks's type to support physical disks hints WIP: Modify PhysicalDisks's type to support physical disks hints Jun 23, 2020
@zouy414 zouy414 changed the title WIP: Modify PhysicalDisks's type to support physical disks hints Modify PhysicalDisks's type to support physical disks hints Jun 23, 2020

// A list of physical disks to use as read by the RAID interface.
PhysicalDisks []string `json:"physical_disks,omitempty"`
PhysicalDisks interface{} `json:"physical_disks,omitempty"`
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.

What do you think about interface{} and []interface{}?
interface {} is easy to use, but [] interface {} can make the input must be a list.

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.

[]interface{} would be more strict and that's more appealing than a generic interface{}. Sure, let's go with that.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Jun 23, 2020

Build failed.

Signed-off-by: ZouYu <zouy.fnst@cn.fujitsu.com>
@zouy414
Copy link
Copy Markdown
Contributor Author

zouy414 commented Jun 24, 2020

@jtopjian Thanks, done.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Jun 24, 2020

Build succeeded.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

LGTM - thank you!

@jtopjian jtopjian merged commit 7495a1a into gophercloud:master Jun 24, 2020
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