python-hpOneView icon indicating copy to clipboard operation
python-hpOneView copied to clipboard

OneView version requires credentials

Open gzecchi opened this issue 6 years ago • 1 comments

Scenario/Intent

I'm trying to get OneView Appliance Version as indicated in this blog post. As per documentation OneView version should be accessible without a login sessions (or login credential), however this SDK requires credentials dict in order to init OneViewClient instance.

Environment Details

  • OneView SDK Version: 4.8.0 (Unreleased - Master)
  • OneView Appliance Version: 4.10.04-0370820
  • OneView Client API Version: 800
  • Python Version: 2.7.15
  • Platform: MacOS Mojave 10.14.0

Steps to Reproduce

Execute version.py inside examples folder.

Expected Result

{u'currentVersion': 800, u'minimumVersion': 120}

Actual Result

Traceback (most recent call last): File "test_versions.py", line 35, in oneview_client = OneViewClient(config) File "/Code/GitHub/python-hpOneView/hpOneView/oneview_client.py", line 128, in init self.__connection.login(config["credentials"]) KeyError: u'credentials'

gzecchi avatar Feb 14 '19 15:02 gzecchi

@gzecchi , Sorry for the late replay and Thank you for pointing out this. We will take this as an enhancement and work on it

sijeesh avatar Jul 23 '19 07:07 sijeesh