From 1265a3275e6893ba5dacbe5ed4f1e24365081a04 Mon Sep 17 00:00:00 2001 From: Jennifer-John Date: Tue, 23 Apr 2024 18:19:34 +0530 Subject: [PATCH 1/2] [BugFix] Fix content type header --- PyPowerFlex/base_client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/PyPowerFlex/base_client.py b/PyPowerFlex/base_client.py index 99aeca7..cad6a5f 100644 --- a/PyPowerFlex/base_client.py +++ b/PyPowerFlex/base_client.py @@ -81,7 +81,6 @@ def send_request(self, method, url, params=None, **url_params): } if utils.is_version_3(version): request_params['auth'] = (self.configuration.username, self.token.get()) - request_params['headers'] = None if method in [self.PUT, self.POST]: request_params['data'] = utils.prepare_params(params) From 582be6fd4591a1fc74f2154d0989ef0f9ded9bc6 Mon Sep 17 00:00:00 2001 From: Jennifer-John Date: Tue, 23 Apr 2024 18:49:17 +0530 Subject: [PATCH 2/2] Update changelog --- ChangeLog.md | 3 +++ PyPowerFlex/base_client.py | 1 + setup.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 983155c..395fdcd 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,8 @@ # PyPowerFlex Change Log +## Version 1.11.0 - released on 30/04/24 +- Added support to query selected statistics to all relevant objects/entities from PowerFlex Manager. + ## Version 1.10.0 - released on 29/03/24 - Added support for retrieving all the firmware repository, validating, deploying, editing, adding nodes and deleting a resource group from PowerFlex Manager. diff --git a/PyPowerFlex/base_client.py b/PyPowerFlex/base_client.py index cad6a5f..f289959 100644 --- a/PyPowerFlex/base_client.py +++ b/PyPowerFlex/base_client.py @@ -81,6 +81,7 @@ def send_request(self, method, url, params=None, **url_params): } if utils.is_version_3(version): request_params['auth'] = (self.configuration.username, self.token.get()) + del request_params['headers']['Authorization'] if method in [self.PUT, self.POST]: request_params['data'] = utils.prepare_params(params) diff --git a/setup.py b/setup.py index f08d540..4b51ef0 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='PyPowerFlex', - version='1.10.0', + version='1.11.0', description='Python library for Dell PowerFlex', author='Ansible Team at Dell', author_email='ansible.team@dell.com',