Skip to content

Commit f5843cb

Browse files
authored
Merge pull request #191 from bjoernricks/create-new-release
Create new release
2 parents 3f6bf4b + 1efee72 commit f5843cb

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [1.2.0]
99

1010
### Added
1111
* Added DEFAULT_SSH_PORT and DEFAULT_HOSTNAME constants to `gmp.connection` [#185](https://github.com/greenbone/python-gvm/pull/185)
1212
* Added `determine_remote_gmp_version` and `determine_supported_gmp` methods to
1313
`gmp.protocols.gmp` module [#186](https://github.com/greenbone/python-gvm/pull/186)
1414

15-
### Changed
16-
1715
### Fixed
18-
* Added a workaround that fixes the `exclude_hosts`-bug in the method `modify_target`.
16+
* Added a workaround that fixes the `exclude_hosts`-bug in the method `modify_target`.
1917
See [#187](https://github.com/greenbone/python-gvm/issues/187) for more details [#188](https://github.com/greenbone/python-gvm/pull/188)
2018
* Fixed value of `EntityType.AGENT` enum [#190](https://github.com/greenbone/python-gvm/pull/190)
2119

22-
[Unreleased]: https://github.com/greenbone/python-gvm/compare/v1.1.0...master
20+
[1.2.0]: https://github.com/greenbone/python-gvm/compare/v1.1.0...v1.2.0
2321

2422
## [1.1.0] - 2019-11-22
2523

gvm/__init__.py

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

2222
from pkg_resources import safe_version
2323

24-
VERSION = (1, 2, 0, 'dev', 1)
24+
VERSION = (1, 2, 0)
2525
"""
2626
Current Version of python-gvm as a tuple
2727
"""

gvm/protocols/gmp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def determine_supported_gmp(self) -> SupportedGmpVersion:
9898
corresponding Gmp class instance
9999
"""
100100
version = self.determine_remote_gmp_version()
101-
major_version = int(version[0])
101+
major_version = int(version.split('.')[0])
102102
if major_version == 7:
103103
gmp_class = Gmpv7
104104
elif major_version == 8:

0 commit comments

Comments
 (0)