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

server_profile_templates does not have a function get_by_name #441

Open
DungKHoang opened this issue Jul 10, 2019 · 1 comment
Open

server_profile_templates does not have a function get_by_name #441

DungKHoang opened this issue Jul 10, 2019 · 1 comment

Comments

@DungKHoang
Copy link

Scenario/Intent

Use the examples provided but it does not work
Please ensure that there is consistency in the SDK for naming functions.
some resources have function get_by('name'....
Other have get_by_name

It is really difficult to work with Python and OneView

Environment Details

  • OneView SDK Version: 4.80
  • OneView Appliance Version: 4.20
  • OneView Client API Version: [API version listed in your configuration file or dictionary]
  • Python Version: 600
  • Platform: RedHat

Steps to Reproduce

USe example server_profile_template.py to get a SPT by name with this:

template = oneview_client.server_profile_templates.get_by_name(server_profile_name)

Expected Result

get a template by name

Actual Result

AttributeError: 'ServerHardwareTypes' object has no attribute 'get_by_name'

@sijeesh
Copy link
Collaborator

sijeesh commented Jul 23, 2019

@DungKHoang, Thanks for your suggestion.
We have fixed all these issues in SDK version 5.0.0-beta, please use that and let me know if you have any issues.

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

No branches or pull requests

2 participants