Hi there,

i've extended our ansible inventory for ansible 1.9.4 with a custom 
vars-plugin. This plugin uses the method load_vars from the utils 
module/class imported by "from ansible import utils" (sorry for this simple 
description, i'm not that proficient in python).

The code using load_vars looks like this:

class VarsModule(object):
// ...

   def _collect_results(self, base_path, group_name, vault_password, 
results):
        path = os.path.join(base_path, group_name)
        if not os.path.exists(path):
            return results

        results =  utils.load_vars(path, results, vault_password=
vault_password)
        return results
//...


It gets a base-path, a group-name and an dictionary containing already 
gathered vars an combines them with the variables from the files below the 
folder "base_path/group_name" by calling ansible's internal functionality 
implemented in the method utils.load_vars 

This method is missing from the new 2.x APIs (yeah i know, never work 
against internal apis...). Is there a way to achieve its behaviour using 
the new API?

Kind regards

Karsten

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to