Files
kubescape/smoke_testing/smoke_utils.py
2021-11-01 13:52:40 +02:00

15 lines
238 B
Python

from sys import stderr
import subprocess
def get_exec_from_args(args: list):
return args[1]
def run_command(command):
try:
return f"{subprocess.check_output(command)}"
except Exception as e:
return f"{e}"