diff options
Diffstat (limited to 'awx_collection/plugins/lookup/schedule_rruleset.py')
-rw-r--r-- | awx_collection/plugins/lookup/schedule_rruleset.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/awx_collection/plugins/lookup/schedule_rruleset.py b/awx_collection/plugins/lookup/schedule_rruleset.py index 07e990800b..bbb9f6542e 100644 --- a/awx_collection/plugins/lookup/schedule_rruleset.py +++ b/awx_collection/plugins/lookup/schedule_rruleset.py @@ -109,7 +109,7 @@ DOCUMENTATION = """ EXAMPLES = """ - name: Create a ruleset for everyday except Sundays set_fact: - complex_rule: "{{ query(awx.awx.schedule_rruleset, '2022-04-30 10:30:45', rules=rrules, timezone='UTC' ) }}" + complex_rule: "{{ lookup(awx.awx.schedule_rruleset, '2022-04-30 10:30:45', rules=rrules, timezone='UTC' ) }}" vars: rrules: - frequency: 'day' @@ -352,4 +352,4 @@ class LookupModule(LookupBase): raise_from(AnsibleError("Failed to parse generated rule set via rruleset {0}".format(e)), e) # return self.get_rrule(frequency, kwargs) - return rruleset_str + return [rruleset_str] |