summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/dns_zone/zonefile.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/provider/dns_zone/zonefile.rb b/lib/puppet/provider/dns_zone/zonefile.rb
index fc875e6..01c757d 100644
--- a/lib/puppet/provider/dns_zone/zonefile.rb
+++ b/lib/puppet/provider/dns_zone/zonefile.rb
@@ -39,4 +39,12 @@ Puppet::Type.type(:dns_zone).provide :zonefile do
resource[:primary]
end
+ def flush
+ # Flush is called after all parameters and properties are set, but
+ # only if the changes. It's called before refresh.
+ # Since we call write in both flush and refresh a double write
+ # might happen, but oh well.
+ create
+ end
+
end