From 759e9d4ebbcddca532c34ab5674d6d13267740c5 Mon Sep 17 00:00:00 2001 From: bom Date: Thu, 22 Dec 2022 22:39:30 +0100 Subject: [PATCH] Execute concatenated command --- src/main/python/ddadevops/c4k_mixin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/python/ddadevops/c4k_mixin.py b/src/main/python/ddadevops/c4k_mixin.py index 94e1fad..1492739 100644 --- a/src/main/python/ddadevops/c4k_mixin.py +++ b/src/main/python/ddadevops/c4k_mixin.py @@ -42,10 +42,7 @@ class C4kMixin(DevopsBuild): chmod(self.build_path() + '/out_auth.edn', 0o600) def c4k_apply(self): - cmd = [f'c4k-{self.c4k_module_name}-standalone.jar', - self.build_path() + '/out_config.edn', - self.build_path() + '/out_auth.edn', - '> ' + self.build_path() + f'/out_{self.c4k_module_name}.yaml'] + cmd = f'c4k-{self.c4k_module_name}-standalone.jar {self.build_path()}/out_config.edn {self.build_path()}/out_auth.edn > {self.build_path()}/out_{self.c4k_module_name}.yaml' output = execute(cmd, True) print(output) return output