From d2f8cdda42b65976da39849594827d3af6fb6e49 Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Tue, 13 Sep 2022 14:57:26 +0300 Subject: [PATCH] ALBS-639: Create a CLI tool to generate SBOM - It's fixed splitting of result of the command `cas --version` --- cas_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_wrapper.py b/cas_wrapper.py index db74821..945e7bc 100644 --- a/cas_wrapper.py +++ b/cas_wrapper.py @@ -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):