summaryrefslogtreecommitdiffstats
path: root/lib/puppet/server/pelement.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/server/pelement.rb')
-rwxr-xr-xlib/puppet/server/pelement.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/server/pelement.rb b/lib/puppet/server/pelement.rb
index 3001cd9a1..0c9537957 100755
--- a/lib/puppet/server/pelement.rb
+++ b/lib/puppet/server/pelement.rb
@@ -40,6 +40,9 @@ class Server::PElement < Server::Handler
# And then apply the configuration. This way we're reusing all
# the code in there. It should probably just be separated out, though.
transaction = client.apply
+
+ # And then clean up
+ component.remove
# It'd be nice to return some kind of report, but... at this point
# we have no such facility.