summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util/ini_file.rb4
1 files changed, 3 insertions, 1 deletions
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