ALBS-639: Create a CLI tool to generate SBOM

- It's fixed splitting of result of the command `cas --version`
This commit is contained in:
soksanichenko 2022-09-13 14:57:26 +03:00
parent e5fd2bf3b1
commit d2f8cdda42

View File

@ -38,7 +38,7 @@ class CasWrapper:
def get_version(cls):
cls._is_binary_present()
command = local['cas']['--version']
version = command()[:-1].split().split('v')[1]
version = command().split()[-1].split('v')[1]
return version
def ensure_login(self):