Hm, that's strange.

Previously, my method's signature was:

def run(self, terms, inject=None, **kwargs):

I'm no python guy and I really don't know what this 'kwargs' means but I 
think it may be related to named parameters.
The above signature worked until I updated ansible yesterday to the current 
master.

If I change the signature to this:

def run(self, terms, variables=None, **kwargs):

the variables parameter is set accordingly but kwargs no longer has a key 
'variables'.

So, I think this parameter was renamed from 'inject' to 'variables' some 
time ago, or the method caller changed from positional parameters to named 
parameters, I don't know.

However, the facts are now accessible through "variables['vars']" which is 
fine for me.

Thanks again for your help which pointed me to the right direction.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/218f1373-64a3-47ed-9cb0-e2b6b7b3aa37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to