Use plugin system to find modules

This commit is contained in:
Daniel Hokka Zakrisson 2012-11-18 18:37:30 +01:00
parent 5dd2ec2cae
commit f95fefd8c5
5 changed files with 32 additions and 36 deletions

View file

@ -44,7 +44,7 @@ class Task(object):
for x in ds.keys():
# code to allow for saying "modulename: args" versus "action: modulename args"
if x in play.playbook.modules_list:
if x in utils.plugins.module_finder:
ds['action'] = x + " " + ds[x]
ds.pop(x)