Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/manifests/server.pp

Issue 29430622: Noissue - Consider Mercurial repository as absent without the .hg/hgrc file (Closed)
Patch Set: For comment 2 Created May 5, 2017, 8:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/manifests/server.pp
===================================================================
--- a/modules/web/manifests/server.pp
+++ b/modules/web/manifests/server.pp
@@ -102,7 +102,7 @@
path => ["/usr/bin/", "/bin/"],
require => Package['mercurial'],
timeout => 0,
- onlyif => "test ! -d /opt/cms",
+ creates => "/opt/cms/.hg/hgrc",
}
exec {"fetch_repo":
@@ -111,7 +111,7 @@
require => Package['mercurial'],
user => www,
timeout => 0,
- onlyif => "test ! -d /home/www/${repository}",
+ creates => "/home/www/${repository}/.hg/hgrc",
}
file {'/var/www':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld