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

fix: Translate nested or/and constraint properly #307

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skycastlelily
Copy link
Contributor

No description provided.

@skycastlelily
Copy link
Contributor Author

skycastlelily commented Mar 10, 2025

This mr fixes the following tmt issue:

If users specify a hardware with nested and/or ,say:

hardware:
      or:
        - hostname: == dummy1.redhat.com
        - or:
            - hostname: == dummy2.redhat.com
            - or:
                - hostname: == dummy3.redhat.com
                - hostname: == dummy4.redhat.com

They will get a job containing the following hostrequires

      <hostRequires>
        <and>
          <or>
            <hostname op="==" value="dummy1.redhat.com"/>
            <or/>
          </or>
        </and>
      </hostRequires>

@kaleemsiddiqu kaleemsiddiqu self-requested a review March 10, 2025 12:43
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

Successfully merging this pull request may close these issues.

1 participant