Fix owner/group as well (#10787)

This commit is contained in:
Matthias Pigulla 2011-11-12 14:08:13 +01:00
parent 9aa17796f9
commit 924e13367b

View File

@ -13,6 +13,7 @@ Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo)
else else
checkout_repository checkout_repository
end end
update_owner
end end
def exists? def exists?
@ -66,6 +67,7 @@ Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo)
def revision=(desired) def revision=(desired)
at_path do at_path do
cvs('update', '-dr', desired, '.') cvs('update', '-dr', desired, '.')
update_owner
@rev = desired @rev = desired
end end
end end
@ -104,4 +106,10 @@ Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo)
cvs('-d', path, 'init') cvs('-d', path, 'init')
end end
def update_owner
if @resource.value(:owner) or @resource.value(:group)
set_ownership
end
end
end end