Please review pull request #756: (#14424) Expand path of the target directory opened by (kelseyhightower)
Description:
This patch expands the path of the target installation directory and
will prevent the following errors:
Error: undefined method `each' for nil:NilClass
- Opened: Fri May 11 15:58:04 UTC 2012
- Based on: puppetlabs:2.7.x (7d3e09801ced1dc31276c6338de7af35f58774de)
- Requested merge: kelseyhightower:ticket/2.7.x/14424_expand_path_of_target_directory (3f50c1e33326c0b81052ec277a1b08e76bb4524c)
Diff follows:
diff --git a/lib/puppet/face/module/install.rb b/lib/puppet/face/module/install.rb
index db0a0eb..2e695cd 100644
--- a/lib/puppet/face/module/install.rb
+++ b/lib/puppet/face/module/install.rb
@@ -149,6 +149,7 @@
when_invoked do |name, options|
sep = File::PATH_SEPARATOR
if options[:target_dir]
+ options[:target_dir] = File.expand_path(options[:target_dir])
options[:modulepath] = "#{options[:target_dir]}#{sep}#{options[:modulepath]}"
end
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" 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-dev?hl=en.
