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

Unified Diff: modules/adblockplus/manifests/host.pp

Issue 29370632: NoIssue - Refactor ensure_*state functions (Closed)
Patch Set: Created Jan. 3, 2017, 2:25 a.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
Index: modules/adblockplus/manifests/host.pp
===================================================================
--- a/modules/adblockplus/manifests/host.pp
+++ b/modules/adblockplus/manifests/host.pp
@@ -109,7 +109,7 @@
type => $sshkey_type,
}
- if $ensure == 'absent' {
+ if !ensure_state($ensure) {
realize(Host[$title])
realize(Sshkey[$title])
}
« no previous file with comments | « modules/adblockplus/lib/puppet/parser/functions/ensure_symlink_state.rb ('k') | modules/adblockplus/manifests/puppet.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld