Issue #22457 has been updated by Charlie Sharpsteen.

Status changed from Unreviewed to Duplicate
Assignee set to Charlie Sharpsteen

Thanks for reporting this! I was able to find an older ticket, #15494, that 
tracks this issue so I am marking this one  as a duplicate. A good index of 
known "exit code" issues can be found in ticket #17017.

----------------------------------------
Bug #22457: puppet parser validate does not check for non existent files
https://projects.puppetlabs.com/issues/22457#change-97279

* Author: Fazle Arefin
* Status: Duplicate
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
Invoking puppet parser validate /path/to/nonexistent_file exits with exit 
status ($?) of 0 instead of a non-zero status.

root@puppet:~# test -f 
/etc/puppet/environments/lt/modules/ssh/manifests/init.pp && echo File exists
File exists
root@puppet:~# puppet parser validate 
/etc/puppet/environments/lt/modules/ssh/manifests/init.pp 
root@puppet:~# echo $?
0
root@puppet:~# 
root@puppet:~# test -f 
/etc/puppet/environments/lt/modules/ssh/manifests/noinit.pp && echo File exists
root@puppet:~# puppet parser validate 
/etc/puppet/environments/lt/modules/ssh/manifests/noinit.pp 
root@puppet:~# echo $?
0
root@puppet:~# 



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to