diff --git a/lib/ansible/runner/action_plugins/group_by.py b/lib/ansible/runner/action_plugins/group_by.py index f6a9f0bc09..e197a07fb1 100644 --- a/lib/ansible/runner/action_plugins/group_by.py +++ b/lib/ansible/runner/action_plugins/group_by.py @@ -40,7 +40,7 @@ class ActionModule(object): args = {} if complex_args: args.update(complex_args) - args.update(parse_kv(module_args)) + args.update(parse_kv(self.runner.module_args)) if not 'key' in args: raise ae("'key' is a required argument.")