Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
fixes small typo with a big impact...
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewmeconry committed Feb 9, 2019
1 parent bcb5ad6 commit e7cad6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions icinga2-aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit e7cad6b

Please sign in to comment.