Issue #15185 has been reported by Luke Kanies.
----------------------------------------
Bug #15185: Settings do not expand ~ in user configuration directory
https://projects.puppetlabs.com/issues/15185
Author: Luke Kanies
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 3.0.0rc3
Keywords:
Branch:
When using ~/.puppet as your personal configuration directory, the '~' does not
get expanded, which means it never actually works. The following patch makes
it work:
diff --git a/lib/puppet/settings.rb b/lib/puppet/settings.rb
index 0e48096..a60abe3 100644
--- a/lib/puppet/settings.rb
+++ b/lib/puppet/settings.rb
@@ -63,7 +63,7 @@ class Puppet::Settings
end
def self.default_user_config_dir
- "~/.puppet"
+ File.expand_path("~/.puppet")
end
def self.default_global_var_dir
@@ -71,7 +71,7 @@ class Puppet::Settings
end
def self.default_user_var_dir
- "~/.puppet/var"
+ File.expand_path("~/.puppet/var")
end
def self.default_config_file_name
I can't quite figure out how to test it, though, because it's set as a constant.
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.