forked from almalinux/cas_wrapper
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:
parent
e5fd2bf3b1
commit
d2f8cdda42
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user