Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible.controller.schedule_rrule doesn't accept end_on as integer #15817

Open
5 of 11 tasks
kk-at-redhat opened this issue Feb 7, 2025 · 0 comments
Open
5 of 11 tasks

Comments

@kk-at-redhat
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

Documentation says "If this is a positive integer, this schedule will end after this number of occurences" however the lookup expects string.

AWX version

4.6.7

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

N/A

Modifications

no

Ansible version

2.5.12

Operating system

RHEL9

Web browser

No response

Steps to reproduce

ansible -m debug -a msg="{{ query('ansible.controller.schedule_rrule', 'day', end_on=2) }}" localhost

Expected results

localhost | SUCCESS => {
"msg": "DTSTART;TZID=America/New_York:20250206T201219 RRULE:FREQ=DAILY;COUNT=2;INTERVAL=1"
}

Actual results

localhost | FAILED! => {
"msg": "An unhandled exception occurred while running the lookup plugin 'ansible.controller.schedule_rrule'. Error was a <class 'TypeError'>, original message: expected string or bytes-like object. expected string or bytes-like object"

Additional information

Perhaps the easiest way is to change the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant