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

undefined method `exitstatus' #13

Open
Tokynet opened this issue Jun 19, 2015 · 5 comments
Open

undefined method `exitstatus' #13

Tokynet opened this issue Jun 19, 2015 · 5 comments

Comments

@Tokynet
Copy link

Tokynet commented Jun 19, 2015

I'm trying to use the maestrodev rvm module which has this module as a dependency. I have declared the following class into my profile to make sure there was nothing wonky on the call from rvm module:

include ::gnupg

gnupg_key { 'hkp_server_D39DC0E3':
ensure => present,
key_id => 'D39DC0E3',
user => 'root',
key_server => 'hkp://keys.gnupg.net',
key_type => public,
}

From puppet run with debug enabled:

Debug: Executing 'gpg --list-keys --with-colons D39DC0E3'
Error: /Stage[main]/Profiles::cool_app/Gnupg_key[hkp_server_D39DC0E3]: Could not evaluate: undefined method `exitstatus' for #String:0x00000005111ae8

When I run the command above manually on the instance this is what I get:
gpg --list-keys --with-colons D39DC0E3
tru::1:1434731668:0:3:1:5
gpg: error reading key: No public key

@dgolja
Copy link
Owner

dgolja commented Jun 20, 2015

What version of puppet are you using ?

@Tokynet
Copy link
Author

Tokynet commented Jun 22, 2015

pe-puppet-server-3.3.3.1-1.pe

@christopher-b
Copy link

I'm seeing the same problem on v3.6.3

@dgolja
Copy link
Owner

dgolja commented Jun 25, 2015

tnx for the feedback. Any more data what O.S., etc so I can try to recreate it ?

@christopher-b
Copy link

Actually, I think I found the problem. My master is on v3.6.2, but one of my clients is still on v3.2. It looks like Puppet::Util::Execution.execute returned a string rather than a Puppet::Util::Execution::ProcessOutput until v3.4: https://tickets.puppetlabs.com/browse/PUP-2306

I'll upgrade the client to see if that helps.

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