On Tue, Oct 13, 2009 at 9:29 PM,  <[email protected]> wrote:
>
> From: Rein Henrichs <[email protected]>
>
> Use Puppet::Util.execute to run the config_version command and reraise
> its potential Puppet::ExecutionFailure exception as a more useful
> Pupppet::ParseError
>...
> -       �...@version = %x{#{Puppet[:config_version]}}.chomp
> +       �...@version = Puppet::Util.execute([Puppet[:config_version]]).strip
> +
> +    rescue Puppet::ExecutionFailure => e
> +        raise Puppet::ParseError, "Unable to set config_version: 
> #{e.message}"
>     end
>

Why Puppet::ParseError?

Steven

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to