HewlettPackard / python-redfish-utility

Python-based utility for interacting with devices supporting a Redfish Service
Other
86 stars 41 forks source link

Add ilorestcommand entrypoint #65

Closed thomasgoirand closed 1 year ago

thomasgoirand commented 1 year ago

—–Synopsis of Commits Above—–

Please fill out the following when submitting the PR

Status

Description

This makes it possible to call rdmc.py from an external binary. In Debian we use /usr/bin/ilorest that calls this new function, as rdmc.py isn't in /usr/bin and isn't executable. In /usr/bin/ilorest, we have: #! /usr/bin/python3 # PBR Generated from 'console_scripts' import sys from ilorest.rdmc import ilorestcommand if __name__ == "__main__": sys.exit(ilorestcommand()) which is generated by PBR (that we use for the Python packaging).

Before Status can be set to READY I have completed at least ONE of the following:

rajeevkallur commented 1 year ago

merged in the next release