Issue #15185 has been updated by Andrew Parker.
This was merged in commit a04782d, but that seems to have occurred before the comments about the patch being insufficient. Is this still an open issue? ---------------------------------------- Bug #15185: Settings do not expand ~ in user configuration directory https://projects.puppetlabs.com/issues/15185#change-68603 Author: Luke Kanies Status: Code Insufficient Priority: Normal Assignee: Andrew Parker Category: Target version: 3.0.0 Affected Puppet version: 3.0.0rc3 Keywords: Branch: https://github.com/puppetlabs/puppet/pull/877 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.
