Changed funtion name to get_ohai_data
This commit is contained in:
parent
4782bc1949
commit
51a8aaf494
1 changed files with 2 additions and 2 deletions
4
ohai
4
ohai
|
@ -18,7 +18,7 @@
|
|||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
def get_facter_data():
|
||||
def get_ohai_data():
|
||||
p = subprocess.Popen(["/usr/bin/env", "ohai"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
(out, err) = p.communicate()
|
||||
rc = p.returncode
|
||||
|
@ -28,7 +28,7 @@ def main():
|
|||
module = AnsibleModule(
|
||||
argument_spec = dict()
|
||||
)
|
||||
rc, out, err = get_facter_data()
|
||||
rc, out, err = get_ohai_data()
|
||||
if rc != 0:
|
||||
module.fail_json(msg=err)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue