Skip to content

Commit

Permalink
accept missing in state
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Sep 29, 2023
1 parent 63abd5f commit 4eea5ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/check/idrac.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ def do_rename(state: dict):
return {
'systemState': [
{k.lstrip('systemState'): v for k, v in item}
for item in state['systemStateTableEntry']],
for item in state.get('systemStateTableEntry', [])],
'eventLog': [
{k.lstrip('eventLog'): v for k, v in item}
for item in state['eventLogTableEntry']],
for item in state.get('eventLogTableEntry', [])],

'firmware': [
{k.lstrip('firmware'): v for k, v in item}
for item in state['firmwareTableEntry']],
for item in state.get('firmwareTableEntry', [])],
}


Expand Down
2 changes: 1 addition & 1 deletion lib/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Version string. Examples:
# '3.0.0'
# '3.0.0-alpha9'
__version__ = '3.0.0-alpha1'
__version__ = '3.0.0-alpha2'

0 comments on commit 4eea5ef

Please sign in to comment.