Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Won't Do
-
None
-
None
-
None
-
Firefox
-
Monolithic
-
CentOS 6
-
PE 3.3.1 Gold
-
Coremunity
Description
Description
If a user provides a string for the "returns" attribute of the "exec" Puppet reference type Puppet fails to reject the value.
Error: /usr/bin/test 0 returned 0 instead of one of [cats]
|
Error: /Stage[main]/Main/Node[default]/Exec[/usr/bin/test 0]/returns: change from notrun to cats failed: /usr/bin/test 0 returned 0 instead of
|
one of [cats]
|
Attachments
- Manifest
Repro Steps
- Install PE on master.
- Verify master is operational.
- Register agent with the master.
- Add node definition for the attached manifest.
- On the agent execute the following command:
puppet agent -t
Expect
Puppet should reject the value for "returns".
Actual
Puppet attempts to compare the exit code with the string:
Error: /usr/bin/test 0 returned 0 instead of one of [cats]
|
Error: /Stage[main]/Main/Node[default]/Exec[/usr/bin/test 0]/returns: change from notrun to cats failed: /usr/bin/test 0 returned 0 instead of
|
one of [cats]
|