From a4dd1244ef27fd07bb5eac49fa3e314ef24a8871 Mon Sep 17 00:00:00 2001 From: Mike Raineri Date: Fri, 13 Mar 2020 10:39:32 -0400 Subject: [PATCH] 1.0.4 Versioning --- CHANGELOG.md | 3 +++ redfish_utilities/logs.py | 2 +- setup.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0753ca..1074028 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## [1.0.4] - 2020-03-13 +- Added rf_logs.py utility for reading and displaying logs + ## [1.0.3] - 2020-01-17 - Added rf_discover.py utility to discover Redfish services via SSDP diff --git a/redfish_utilities/logs.py b/redfish_utilities/logs.py index 732fea1..9cb3747 100644 --- a/redfish_utilities/logs.py +++ b/redfish_utilities/logs.py @@ -88,7 +88,7 @@ def print_log_entries( log_entries, details = False ): timestamp_property = "Created" if "EventTimestamp" in entry: timestamp_property = "EventTimestamp" - print( entry_line_format.format( entry["Id"], entry[timestamp_property], entry["Message"].replace( "\n", "; " )[:message_size] ) ) + print( entry_line_format.format( entry["Id"], entry.get( timestamp_property, "Unknown" ), entry["Message"].replace( "\n", "; " )[:message_size] ) ) if details: for detail in detail_list: if detail in entry: diff --git a/setup.py b/setup.py index 6a5c66c..2530362 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name = "redfish_utilities", - version = "1.0.3", + version = "1.0.4", description = "Redfish Utilities", long_description = long_description, long_description_content_type = "text/markdown",