Skip to content

Commit 38c711d

Browse files
committed
version 5.2.0.0
1 parent 29dcf22 commit 38c711d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/redfish/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" Redfish restful library """
22

33
__all__ = ["rest", "ris", "hpilo"]
4-
__version__ = "5.1.0.0"
4+
__version__ = "5.2.0.0"
55

66
import logging
77

src/redfish/ris/rmc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,10 @@ def commit(self):
772772
payload = createdict(indices.pop(), payload)
773773
merge_dict(totpayload, payload)
774774
currdict = copy.deepcopy(totpayload)
775-
775+
if "PersistentBootConfigOrder" in currdict and type(currdict) is dict:
776+
currdict = list(set(currdict["PersistentBootConfigOrder"]))
777+
default_value = 0
778+
currdict = {key: default_value for key in currdict}
776779
if currdict:
777780
yield instance.resp.request.path
778781

@@ -962,7 +965,6 @@ def post_handler(self, put_path, body, headers=None, silent=False, service=False
962965

963966
if results.status == 400 and results.dict is None:
964967
return results
965-
966968
if not silent and hasattr(self.typepath.defs, "messageregistrytype"):
967969
ResponseHandler(self.validationmanager, self.typepath.defs.messageregistrytype).output_resp(
968970
results, dl_reg=service, verbosity=self.verbose

0 commit comments

Comments
 (0)