Execute command(s)
(module, cmd, stdin=None)
| 74 | |
| 75 | |
| 76 | def exec_command(module, cmd, stdin=None): |
| 77 | ''' |
| 78 | Execute command(s) |
| 79 | ''' |
| 80 | |
| 81 | binary_data = False |
| 82 | if stdin: |
| 83 | binary_data = True |
| 84 | rc, out, err = module.run_command(cmd, data=stdin, binary_data=binary_data) |
| 85 | |
| 86 | return rc, cmd, out, err |
| 87 | |
| 88 | |
| 89 | def build_base_cmd(module: "AnsibleModule") -> List[str]: |
no outgoing calls
no test coverage detected