From 4f0e7264e3c3089e489d05bbb4371c449b0ed78d Mon Sep 17 00:00:00 2001 From: Chris Price Date: Thu, 16 Aug 2012 19:30:58 -0700 Subject: final commit for 0.0.1 release * Updated README * Fixed a small bug that would be triggered if the file specified by `path` didn't exist. * Added a smoke test manifest --- lib/puppet/util/ini_file.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/util/ini_file.rb b/lib/puppet/util/ini_file.rb index b951b3f..9fd08ad 100644 --- a/lib/puppet/util/ini_file.rb +++ b/lib/puppet/util/ini_file.rb @@ -12,7 +12,9 @@ module Util @path = path @section_names = [] @sections_hash = {} - parse_file + if File.file?(@path) + parse_file + end end def section_names -- cgit v1.2.3