Jira (PUP-9960) Puppet::Util::Execution.execute('command') does not return a Puppet::ExecutionFailure on Windows

11 views
Skip to first unread message

Trevor Vaughan (JIRA)

unread,
Aug 12, 2019, 9:41:03 PM8/12/19
to puppe...@googlegroups.com
Trevor Vaughan created an issue
 
Puppet / Bug PUP-9960
Puppet::Util::Execution.execute('command') does not return a Puppet::ExecutionFailure on Windows
Issue Type: Bug Bug
Affects Versions: PUP 5.5.16
Assignee: Henrik Lindberg
Components: Functions, Windows
Created: 2019/08/12 6:40 PM
Priority: Normal Normal
Reporter: Trevor Vaughan

Puppet Version: 5.5.16
Puppet Server Version: N/A
OS Name/Version: Windows 2012r2

Running Puppet::Util::Execution.execute('foo') should raise a Puppet::ExecutionFailure exception but, instead raises Errno::ENOENT since the command is not found.

This appears to go against the documented API of the function and makes creating code that is safe for all operating systems difficult.

Desired Behavior:

Always raise Puppet::ExecutionFailure on an error.

Actual Behavior:

 

Errno::ENOENT is raised.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Aug 13, 2019, 9:34:03 AM8/13/19
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Aug 13, 2019, 9:34:04 AM8/13/19
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Component/s: Windows
Component/s: Functions
Component/s: Catalog Application

Jorie Tappa (JIRA)

unread,
Aug 19, 2019, 1:01:03 PM8/19/19
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 27, 2023, 10:35:02 AM1/27/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Coremunity Phoenix
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages