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

updated unless condition on Suse/Redhat GPG key imports to ensure downcasing #158

Merged
merged 1 commit into from Sep 26, 2016

Conversation

exodusftw
Copy link
Contributor

@exodusftw exodusftw commented Sep 23, 2016

the current code on Suse simply converts all letters to the character 'a' and causes each run to re-import keys - so just for consistency sake, setting redhat/suse to both use the [:upper:] [:lower:] syntax

  • edit - I should clarify - this doesn't happen on all systems, but the behavior appears to occur on older versions of coreutils

…ncasing as the current code on Suse simply converts all letters to the character 'a' and causes each run to re-import keys
@exodusftw
Copy link
Contributor Author

exodusftw commented Sep 23, 2016

Just to show an example:

root@examplehost:/tmp $ rpm -qf /usr/bin/tr
coreutils-8.12-6.25.31.1

root@examplehost:/tmp $ cat /etc/*release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3

root@examplehost:/tmp $ echo "ABCDEFG" | tr [A-Z] [a-z]
aaaaaaa

root@examplehost:/tmp $ echo "ABCDEFG" | tr A-Z a-z
abcdefg

root@examplehost:/tmp $ echo "ABCDEFG" | tr [:upper:] [:lower:]
abcdefg

@puppetcla
Copy link

Waiting for CLA signature by @exodusftw

@exodusftw - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/

Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html

Copy link
Contributor

@MikaelSmith MikaelSmith left a comment

Choose a reason for hiding this comment

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

Thanks. I've tried this in CentOS 4, RedHat 7, and SLES 10. I suspect it's pretty universal.

@MikaelSmith
Copy link
Contributor

@highb any concerns?

@MikaelSmith
Copy link
Contributor

Created https://tickets.puppetlabs.com/browse/MODULES-3894 to track this.

@highb
Copy link
Contributor

highb commented Sep 26, 2016

👍 from me

@highb highb merged commit 26e9c28 into puppetlabs:master Sep 26, 2016
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.

None yet

4 participants