Skip to content

Commit 5330a28

Browse files
committed
docs: start with clean objects when updating docs
1 parent 7145ec5 commit 5330a28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/thruk_update_docs_rest.pl

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
Thruk::setup_cluster() unless defined $Thruk::Globals::NODE_ID;
2121
$c->app->cluster->register($c);
2222
$c->app->cluster->load_statefile();
23+
unlink(glob($c->{'config'}->{'var_path'}.'/obj_retention.*'));
2324
my $res = $c->sub_request('/r/config/objects', 'POST', {':TYPE' => 'host', ':FILE' => 'docs-update-test.cfg', 'name' => 'docs-update-test'});
2425
die("request failed: ".Dumper($res)) unless(ref $res eq 'HASH' && $res->{'message'} && $res->{'message'} =~ m/objects\ successfully/mx);
2526

0 commit comments

Comments
 (0)