Fix all other calls to yaml

This commit is contained in:
James Tanner 2014-02-19 11:01:21 -05:00
parent 427b8dc78d
commit 3fc87e011b
3 changed files with 10 additions and 9 deletions

View file

@ -43,7 +43,7 @@ class ActionModule(object):
source = utils.path_dwim(self.runner.basedir, source)
if os.path.exists(source):
data = utils.parse_yaml_from_file(source)
data = utils.parse_yaml_from_file(source, vault_password=self.runner.vault_pass)
if type(data) != dict:
raise errors.AnsibleError("%s must be stored as a dictionary/hash" % source)
result = dict(ansible_facts=data)