Skip to content

Commit d20b595

Browse files
committed
version 4.6.0.0
1 parent 2b690f6 commit d20b595

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

setup.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import find_packages, setup
22

33
extras = {}
44

55
setup(name='python-ilorest-library',
6-
version='4.5.0.0',
6+
version='4.6.0.0',
77
description='iLO Rest Python Library',
8-
author = 'Hewlett Packard Enterprise',
9-
author_email = 'rajeevalochana.kallur@hpe.com',
10-
extras_require = extras,
8+
author='Hewlett Packard Enterprise',
9+
author_email='rajeevalochana.kallur@hpe.com',
10+
extras_require=extras,
1111
classifiers=[
1212
'Development Status :: 5 - Production/Stable',
1313
'License :: OSI Approved :: Apache Software License',
14-
'Programming Language :: Python :: 2.7',
15-
'Programming Language :: Python :: 3.6',
16-
'Programming Language :: Python :: 3.7',
1714
'Programming Language :: Python :: 3.8',
1815
'Programming Language :: Python :: 3.9',
1916
'Programming Language :: Python :: 3.10',

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__ = "4.5.0.0"
4+
__version__ = "4.6.0.0"
55

66
import logging
77

src/redfish/rest/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def dict(self):
223223
try:
224224
return json.loads(self.read)
225225
except ValueError as exp:
226-
if self.path != "/smbios":
226+
if self.path != "/smbios" and self.path != "/cgi-bin/uploadFile":
227227
sys.stderr.write("An invalid response body was returned: %s" % exp)
228228
return None
229229

src/redfish/ris/rmc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,9 @@ def post_handler(self, put_path, body, headers=None, silent=False, service=False
957957

958958
self._modifiedpath(results)
959959

960+
if results.status == 400 and results.dict is None:
961+
return results
962+
960963
if not silent and hasattr(self.typepath.defs, "messageregistrytype"):
961964
ResponseHandler(self.validationmanager, self.typepath.defs.messageregistrytype).output_resp(
962965
results, dl_reg=service, verbosity=self.verbose

0 commit comments

Comments
 (0)