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

Add condition for foreman-client-repo based on bats version #1744

Closed
wants to merge 1 commit into from

Conversation

@@ -4,3 +4,6 @@
name: https://yum.theforeman.org/client/{{ foreman_client_repositories_version }}/{{ foreman_client_repositories_dists[ansible_os_family] }}{{ ansible_distribution_major_version }}/x86_64/foreman-client-release.rpm
disable_gpg_check: True
state: present
when:
- katello_repositories_version == "nightly" or foreman_client_repositories_version is version('3.9', '<')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

katello_repositories_version is not necessarily defined in the client context.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I pushed one after walking to get coffee and reflecting on my own mistakes

@@ -4,3 +4,6 @@
name: https://yum.theforeman.org/client/{{ foreman_client_repositories_version }}/{{ foreman_client_repositories_dists[ansible_os_family] }}{{ ansible_distribution_major_version }}/x86_64/foreman-client-release.rpm
disable_gpg_check: True
state: present
when:
- foreman_client_repositories_version is version('3.9', '<')
- ansible_distribution_major_version == '8'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this limitation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy past done wrong, let me clear that

@Odilhao Odilhao force-pushed the bats-client-4.11 branch 2 times, most recently from 8bada4f to 974ad95 Compare December 7, 2023 15:41
@evgeni
Copy link
Member

evgeni commented Dec 7, 2023

I think this is wrong, we rather should set the staging_source correctly: #1745

@Odilhao Odilhao closed this Dec 7, 2023
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.

2 participants