Skip to content

Commit cd1ad90

Browse files
authored
Merge pull request #109 from thc202/automation/fix-planprogress
2 parents 27e16c5 + 2e1b0e0 commit cd1ad90

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

6-
## [Unreleased]
6+
## [0.3.1] - 2024-05-20
7+
### Fixed
8+
- Return the whole response from `automation.plan_progress`.
79

810
## [0.3.0] - 2024-05-09
911
### Added
@@ -173,7 +175,7 @@ ensure it's automatically sent in all API requests.
173175
### Changed
174176
- Moved from the main `zaproxy` repository.
175177

176-
[Unreleased]: https://github.com/zaproxy/zap-api-python/compare/0.3.0...HEAD
178+
[0.3.1]: https://github.com/zaproxy/zap-api-python/compare/0.3.0...0.3.1
177179
[0.3.0]: https://github.com/zaproxy/zap-api-python/compare/0.2.0...0.3.0
178180
[0.2.0]: https://github.com/zaproxy/zap-api-python/compare/0.1.1...0.2.0
179181
[0.1.1]: https://github.com/zaproxy/zap-api-python/compare/0.1.0...0.1.1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55
[tool.poetry]
66
name = "zaproxy"
77
# Ensure __version__ in src/zapv2/__init__.py matches.
8-
version = "0.4.0"
8+
version = "0.3.1"
99
description = "ZAP API Client"
1010
readme = "README.md"
1111
authors = ["ZAP Development Team <[email protected]>"]

src/zapv2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"""
2121

2222
__docformat__ = 'restructuredtext'
23-
__version__ = '0.4.0'
23+
__version__ = '0.3.1'
2424

2525
import requests
2626
from requests.packages.urllib3.exceptions import InsecureRequestWarning

src/zapv2/automation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def plan_progress(self, planid):
3131
"""
3232
This component is optional and therefore the API will only work if it is installed
3333
"""
34-
return six.next(six.itervalues(self.zap._request(self.zap.base + 'automation/view/planProgress/', {'planId': planid})))
34+
return (self.zap._request(self.zap.base + 'automation/view/planProgress/', {'planId': planid}))
3535

3636
def run_plan(self, filepath, apikey=''):
3737
"""

0 commit comments

Comments
 (0)