1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge branch 'devel' of github.com:ansible/ansible into devel

This commit is contained in:
Michael DeHaan 2013-07-22 15:16:47 -04:00
commit 86f05f11e7
3 changed files with 8 additions and 7 deletions

View file

@ -58,7 +58,11 @@ class ActionModule(object):
data = {}
data.update(inject)
data.update(inject['hostvars'][host])
if not check_conditional(self.runner.basedir, self.runner.conditional, data, fail_on_undefined=self.runner.error_on_undefined_vars):
conds = self.runner.conditional
if type(conds) != list:
conds = [ conds ]
for cond in conds:
if not check_conditional(cond, self.runner.basedir, data, fail_on_undefined=self.runner.error_on_undefined_vars):
continue
group_name = template.template(self.runner.basedir, args['key'], data)
group_name = group_name.replace(' ','-')

View file

@ -71,7 +71,7 @@ class LookupModule(object):
terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject)
if not isinstance(terms, list):
raise errors.AnsibleError("with_flat_list expects a list")
raise errors.AnsibleError("with_flattened expects a list")
ret = self.flatten(terms, inject)
return ret

View file

@ -633,10 +633,7 @@ class LinuxHardware(Hardware):
size_total = statvfs_result.f_bsize * statvfs_result.f_blocks
size_available = statvfs_result.f_bsize * (statvfs_result.f_bavail)
except OSError, e:
if e.errno == errno.ENOENT:
pass
else:
self.fail_json(msg=e.strerror)
continue
self.facts['mounts'].append(
{'mount': fields[1],