-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use guard clauses instead of large conditional
- Loading branch information
Showing
1 changed file
with
21 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We have a problem whith this commit with this path :
puppet ls sites-enabled/
Error: undefined local variable or method `rel_path' for #Puppet::Interface:0x00000001ad90c0
Error: Try 'puppet help ls list' for usage
I fix this issue with :
next if rel_path.nil? || rel_path.split(File::SEPARATOR).length > 1 && !options[:recursive]
If you have a best fix..