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

Configure SSL if variable is capitalized or not #553

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

tinsjourney
Copy link
Contributor

When using ansible-podman-collections to create the multi-process images, boolean environment are capitalized.
So this is workaround until
containers/ansible-podman-collections#648 is fixed.

@@ -1,6 +1,6 @@
#!/bin/bash

if [ "${PULP_HTTPS}" = "true" ]; then
if [[ "${PULP_HTTPS}" = "true" || "${PULP_HTTPS}" = "True" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if [[ "${PULP_HTTPS}" = "true" || "${PULP_HTTPS}" = "True" ]]; then
if [ "${PULP_HTTPS,,}" = "true" ]; then

I am +1 for making the matching less strict.
But you should probably not define your environment variables with bool in the first place.
Yaml does not like Norway...

@mdellweg
Copy link
Member

Instead of closing, the PR, would you be willing to apply the suggestion and we can merge it?

@tinsjourney tinsjourney reopened this Sep 28, 2023
@tinsjourney
Copy link
Contributor Author

@mdellweg OK I reopened the PR and did the change.

@mdellweg
Copy link
Member

Can you please squash to commits into one?

@dkliban dkliban merged commit 77066a2 into pulp:latest Oct 4, 2023
15 checks passed
@tinsjourney tinsjourney deleted the podman_container branch October 4, 2023 21:26
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.

3 participants