-
Notifications
You must be signed in to change notification settings - Fork 57
Firmware bundle #392
base: enhancement/resource_base_class
Are you sure you want to change the base?
Firmware bundle #392
Conversation
CHANGELOG.md
Outdated
| @@ -1,4 +1,10 @@ | |||
| # 4.7.1 | |||
| # 4.7.1 (Unreleased) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets mark this release as 5.0 as it will be a major change because of design changes
| return self.__do_post(uri, resource, timeout, custom_headers) | ||
|
|
||
| def upload(self, file_path, uri=None, timeout=-1): | ||
| def upload(self, file_path, uri=None, timeout=-1, custom_headers=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add documentation for the new arg in the comments section
| self._client = ResourceClient(con, self.URI) | ||
|
|
||
| def upload(self, file_path, timeout=-1): | ||
| def upload(self, file_path, timeout=-1, custom_headers=None,): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comma in the end of args list and add documentation
hpOneView/connection.py
Outdated
| return None, body | ||
|
|
||
| def post_multipart(self, uri, fields, files, baseName, verbose=False): | ||
| def post_multipart(self, uri, fields, files, baseName, custom_headers, verbose=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again custom_headers should be added in the end of args list as we discussed and is custom_headers a mandatory param. If not, then better to give default value
|
What's the progress of this? |
Description
Adds additional custom headers' support for firmware bundles introduced in api600.
Check List
$ tox).