Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jon-hamill
Copy link

hiya guys - thanks as always for your help while I scrambled to get the bios_tool working for hillside

Copy link
Collaborator

@vince-weka vince-weka left a 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?

Jonathan Hamill added 2 commits February 5, 2025 09:55
@jon-hamill
Copy link
Author

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

@jon-hamill
Copy link
Author

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

@jon-hamill
Copy link
Author

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants