diff options
author | Paul Allen <pallen@perforce.com> | 2014-06-23 16:22:35 +0100 |
---|---|---|
committer | Paul Allen <pallen@perforce.com> | 2014-06-23 16:22:35 +0100 |
commit | 457035ec1c15df0d53abf7232dad63b2722b1720 (patch) | |
tree | f629a9955235b81e6b16f69a7521fc8bcf6339d8 /lib/puppet | |
parent | 319f9fbe1954fd172da638f3ccd76e58c3ec8c7f (diff) | |
download | puppet-vcsrepo-457035ec1c15df0d53abf7232dad63b2722b1720.tar.gz puppet-vcsrepo-457035ec1c15df0d53abf7232dad63b2722b1720.tar.bz2 |
Add hostname to Digest for default client name.
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/provider/vcsrepo/p4.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/p4.rb b/lib/puppet/provider/vcsrepo/p4.rb index ec40cf3..612cc56 100644 --- a/lib/puppet/provider/vcsrepo/p4.rb +++ b/lib/puppet/provider/vcsrepo/p4.rb @@ -106,7 +106,8 @@ Puppet::Type.type(:vcsrepo).provide(:p4, :parent => Puppet::Provider::Vcsrepo) d # default (generated) client name path = @resource.value(:path) - default = "puppet-" + Digest::MD5.hexdigest(path) + host = Facter.value('hostname') + default = "puppet-" + Digest::MD5.hexdigest(path + host) # check config for client name set_client = nil |