-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hamill :: adding the changes I needed in order to make the hillside i… #13
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a try/except block if undesireable (also the "raise" will cause a traceback) here:
try: self.bios_data.dict['@Redfish.Settings'] except KeyError as ke: log.error(f"Error retrieving settings from remote console. Pending changes in target bios should be applied by a reboot before bios_tool can continue" ) raise
A better way is to use:
if '@Redfish.Settings' not in self.bios_data.dict: log.error(f"Error retrieving settings from server <name the server ip or something>")
So the tool can continue to the next server. Can you make this change?
… tool can continue
…d even though the settings could not be retrieved
I changed the try/except to a 'if not in' check as requested :) The logged error message could still use some tuning though - happy to take and suggestions about that |
also - I think copilot is parsing the word 'credentials' in an f-string even though the variable in the f-string delimiters has nothing to do with credentials in the logs |
gimme a hollar on slack if you need me to change anything because the updates/notifications from github are really slow :) |
…efore this change, the GlobalC_stateControl setting was not being considered by the logic
…ismEnable but the closest thing I can find now is PowerProfileSelection
hiya guys - thanks as always for your help while I scrambled to get the bios_tool working for hillside