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

modified_changelog_and_examples #305

Merged
merged 2 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)

# [v6.1.0 unreleased]
### Bug fixes & Enhancements:
- [#301] (https://github.com/HewlettPackard/oneview-golang/issues/301) Fix number of Server Hardware resource returned

# [v6.0.0]
### Notes
- This release extends supports of the SDK to Oneview API Version 2600. Image Streamer API Version 2010.
Expand Down
5 changes: 4 additions & 1 deletion examples/server_hardware.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ func main() {
filters := []string{""}
ServerList, err := ovc.GetServerHardwareList(filters, "", "", "", "")
if err == nil {
fmt.Println("Total server list :", ServerList.Members[0])
for i := 0; i < ServerList.Count; i++ {
fmt.Println(ServerList.Members[i])
}

} else {
fmt.Println("Failed to fetch server List : ", err)
}
Expand Down