Skip to content

Commit 5a937ef

Browse files
authored
Merge pull request #1003 from GiedriusS/fix_plugin
manifests/plugin: reorder plugin notify
2 parents 68cb9fb + 1caf629 commit 5a937ef

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ Rhommel Lamas (rhoml)
3131
Jose Luis Ledesma (sp-joseluis-ledesma)
3232
Matthias Baur (baurmatt)
3333
Gavin Williams (fatmcgav)
34+
Giedrius Statkevičius (GiedriusS)

manifests/plugin.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@
9090
default: { }
9191
}
9292

93-
if ! empty($instances) and $elasticsearch::restart_plugin_change {
94-
Elasticsearch_plugin[$name] {
95-
notify +> Elasticsearch::Instance[$instances],
96-
}
97-
}
98-
9993
# set proxy by override or parse and use proxy_url from
10094
# elasticsearch::proxy_url or use no proxy at all
10195

@@ -149,4 +143,10 @@
149143
recurse => true,
150144
before => $_file_before,
151145
}
146+
147+
if ! empty($instances) and $elasticsearch::restart_plugin_change {
148+
Elasticsearch_plugin[$name] {
149+
notify +> Elasticsearch::Instance[$instances],
150+
}
151+
}
152152
}

0 commit comments

Comments
 (0)