Skip to content

Commit 315b344

Browse files
committed
fix: if running from slash / then set it to /etc/puppetlabs/code/environments/master
1 parent 1f658b8 commit 315b344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

puppet_enc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
require 'open3'
88
require 'yaml'
99

10-
BASEDIR = Dir.pwd
10+
BASEDIR = BASEDIR = Dir.pwd == '/' ? '/etc/puppetlabs/code/environments/master' : Dir.pwd
1111

1212
$LOAD_PATH.unshift("#{BASEDIR}/modules/enableit/functions/lib")
1313

0 commit comments

Comments
 (0)