Skip to content

Commit 1efee72

Browse files
committed
Fix major version calculation for two digit versions
Support version 20.04 and following.
1 parent fde3ae1 commit 1efee72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)