From e7cad6b8874a7f98f5f9c31684eb5e4f59b34172 Mon Sep 17 00:00:00 2001 From: Mathias Scherer Date: Sat, 9 Feb 2019 14:38:28 +0100 Subject: [PATCH] fixes small typo with a big impact... --- icinga2-aws.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icinga2-aws.py b/icinga2-aws.py index 66c8f7e..d78d91b 100644 --- a/icinga2-aws.py +++ b/icinga2-aws.py @@ -45,11 +45,11 @@ def cleanupHosts(instances): if instanceActive == False: shutil.rmtree(x[0]) - for directory in os.listdir(config['Default']['php4nagiosPerfDataFolder']): + for directory in os.listdir(config['Default']['pnp4nagiosPerfDataFolder']): if(directory.find(folder_instance_id) > -1): - if os.path.exists(config['Default']['php4nagiosPerfDataFolder'] + directory): + if os.path.exists(config['Default']['pnp4nagiosPerfDataFolder'] + directory): shutil.rmtree( - config['Default']['php4nagiosPerfDataFolder'] + folder_instance_id) + config['Default']['pnp4nagiosPerfDataFolder'] + folder_instance_id) def get_instances(tags): filters = []