Skip to content

Commit

Permalink
Version 4.9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeevkallur committed Mar 24, 2024
1 parent c609e0d commit 7d6db34
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/redfish/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Redfish restful library """

__all__ = ["rest", "ris", "hpilo"]
__version__ = "4.8.0.0"
__version__ = "4.9.0.0"

import logging

Expand Down
3 changes: 2 additions & 1 deletion src/redfish/hpilo/risblobstore2.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,8 @@ def initializecreds(username=None, password=None, log_dir=None):

dll = BlobStore2.gethprestchifhandle()
if LOGGER.isEnabledFor(logging.DEBUG):
dll.enabledebugoutput(log_dir)
logdir_c = create_string_buffer(log_dir.encode('UTF-8'))
dll.enabledebugoutput(logdir_c)
dll.ChifInitialize(None)
if username:
if not password:
Expand Down
5 changes: 3 additions & 2 deletions src/redfish/hpilo/rishpilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ def __init__(self, dll=None, log_dir=None):
self.log_dir = log_dir
if LOGGER.isEnabledFor(logging.DEBUG):
self.dll.enabledebugoutput.argtypes = [c_char_p]
logdir_c = create_string_buffer(log_dir.encode('UTF-8'))
self.dll.enabledebugoutput(logdir_c)
if log_dir is not None:
logdir_c = create_string_buffer(log_dir.encode('UTF-8'))
self.dll.enabledebugoutput(logdir_c)

self.dll.ChifInitialize(None)

Expand Down
2 changes: 1 addition & 1 deletion src/redfish/rest/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def _init_connection(self, **kwargs):
log_dir = kwargs.pop("log_dir", "")
try:
correctcreds = BlobStore2.initializecreds(username=username, password=password, log_dir=log_dir)
bs2 = BlobStore2(log_dir=log_dir)
bs2 = BlobStore2()
if not correctcreds:
security_state = int(bs2.get_security_state())
if security_state == 3:
Expand Down

0 comments on commit 7d6db34

Please sign in to comment.