Fix missing part of commit 4d4c998

In that commit this piece of code was moved under the check
for whether the nagios plugins dir exists but seems this piece
was inadvertently not removed.

Change-Id: I72d48438105edd8cb311d36253a592009a9c3706
Closes-Bug: 1786164
This commit is contained in:
Edward Hope-Morley 2018-09-19 15:11:35 +01:00
parent 2d4fba0360
commit d5f28378d2
1 changed files with 0 additions and 5 deletions

View File

@ -627,11 +627,6 @@ def update_nrpe_checks():
elif os.path.isfile(STATS_CRONFILE):
os.remove(STATS_CRONFILE)
if config('management_plugin'):
rsync(os.path.join(charm_dir(), 'scripts',
'check_rabbitmq_cluster.py'),
os.path.join(NAGIOS_PLUGINS, 'check_rabbitmq_cluster.py'))
# Find out if nrpe set nagios_hostname
hostname = nrpe.get_nagios_hostname()
myunit = nrpe.get_nagios_unit_name()