MCPcopy
hub / github.com/ceph/ceph-ansible / exec_command

Function exec_command

module_utils/ca_common.py:76–86  ·  view source on GitHub ↗

Execute command(s)

(module, cmd, stdin=None)

Source from the content-addressed store, hash-verified

74
75
76def 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
89def build_base_cmd(module: "AnsibleModule") -> List[str]:

Callers 10

run_moduleFunction · 0.90
run_moduleFunction · 0.90
mainFunction · 0.90
get_pool_detailsFunction · 0.90
update_poolFunction · 0.90
run_moduleFunction · 0.90
run_moduleFunction · 0.90
run_moduleFunction · 0.90
is_lvFunction · 0.90
run_moduleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected