HewlettPackard / python-ilorest-library

Python library for interacting with devices which support a Redfish Service
Apache License 2.0
189 stars 92 forks source link

ISSUE #error on #from get_resource_directory import get_resource_directory #75

Closed Yasinmohammed007 closed 3 years ago

Yasinmohammed007 commented 4 years ago

Hi,

I've cloned this and yet i see an issue with importing lines

from get_resource_directory import get_resource_directory

i have tried to run reboot_server. py

got this error.

at output ++++++++++++++++++++++++++++++++++++++++++++++++++++= Traceback (most recent call last): File "C:/Users/503144060/PycharmProjects/python-ilorest-library-master/examples/Redfish/reboot_server.py", line 97, in reboot_server(REDFISHOBJ) Found resource directory at /redfish/v1/resourcedirectory File "C:/Users/503144060/PycharmProjects/python-ilorest-library-master/examples/Redfish/reboot_server.py", line 44, in reboot_server

systems_members_response = _redfishobj.get(systems_uri)

UnboundLocalError: local variable 'systems_uri' referenced before assignment

topritchett commented 4 years ago

We just updated the script. Would you try using the updated reboot_server.py?

rajeevkallur commented 3 years ago

Example scripts are updated