run the fdbcli statement: fdbcli --exec ' ... '. Returns: string: Console output from fdbcli
(*args)
| 38 | |
| 39 | |
| 40 | def run_fdbcli_command(*args): |
| 41 | """run the fdbcli statement: fdbcli --exec '<arg1> <arg2> ... <argN>'. |
| 42 | |
| 43 | Returns: |
| 44 | string: Console output from fdbcli |
| 45 | """ |
| 46 | commands = command_template + ["{}".format(' '.join(args))] |
| 47 | return subprocess.run(commands, stdout=subprocess.PIPE, env=fdbcli_env).stdout.decode('utf-8').strip() |
| 48 | |
| 49 | |
| 50 | def run_fdbcli_command_and_get_error(*args): |
no test coverage detected