From 526a0b1f60f35147fd971c1d97937c89fa1546f0 Mon Sep 17 00:00:00 2001 From: Nikhil Singh Date: Tue, 31 Jul 2012 13:07:53 +0530 Subject: [PATCH] Changed funtion name to get_ohai_data --- library/ohai | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ohai b/library/ohai index 2a1e36ea76..1d0763fd33 100755 --- a/library/ohai +++ b/library/ohai @@ -18,7 +18,7 @@ # along with Ansible. If not, see . # -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: