DMTF/python-redfish-library

Example using ContextManager is helpful

glimchb opened this issue · 1 comments

It will be very helpful to give this example how to use redfish with ContextManager :

with  redfish.redfish_client('https://in-g0001-bmca', 'admin', 'password') as REDFISH_OBJ:
    response = REDFISH_OBJ.get("/redfish/v1/systems/1")
    print response.text

dup with #49