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

rd cli 1.3.10 does not handle negative filters on tags propertly #373

Open
tehret77 opened this issue Nov 4, 2021 · 3 comments
Open

rd cli 1.3.10 does not handle negative filters on tags propertly #373

tehret77 opened this issue Nov 4, 2021 · 3 comments

Comments

@tehret77
Copy link

tehret77 commented Nov 4, 2021

Hello,

In our scenario some nodes must be excluded based on tags from job execution.

In the Rundeck UI it works with
tags:filter1+filter2 !tags:filter3

When I try the same with the rd cli run -i <job id> -F 'tags:filter1+filter2 !tags:filter3' command it does not respect the negative selection and ignore the complete filter and run the command on all nodes.

In tests with rd nodes list -p project -F 'tags:filter1+filter2 !tags:filter3' the correct set of nodes was returned.

Is there anything wrong in my rd run command?

Thanks,
Torben

@koraz0815
Copy link

I also have this problem in my enviornment.

@koraz0815
Copy link

This problem still exist.
Is there planned any fix in the near future?

@thedoc31
Copy link

I wonder if there's an issue with escaping the ! character. The code for rd nodes list does not appear to use the exact same methods to send filters to Rundeck as rd run does in 2.0.8, but I could be reading it incorrectly. @tehret77 @koraz0815 did either of you try sending in filters directly via the API instead of rd command?

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

No branches or pull requests

3 participants