Commit e0b0ac44 authored by Alain Takoudjou's avatar Alain Takoudjou

playbook: fix indentation in log_parse plugin

parent 910d2148
Pipeline #2100 skipped
...@@ -23,13 +23,13 @@ class CallbackModule(baseModule): ...@@ -23,13 +23,13 @@ class CallbackModule(baseModule):
if ANSIBLE_VERSION > 1: if ANSIBLE_VERSION > 1:
super(CallbackModule, self).__init__() super(CallbackModule, self).__init__()
if not os.path.exists(self.log_path): if not os.path.exists(self.log_path):
os.makedirs(self.log_path) os.makedirs(self.log_path)
else: else:
for filename in os.listdir(self.log_path): for filename in os.listdir(self.log_path):
filepath = os.path.join(self.log_path, filename) filepath = os.path.join(self.log_path, filename)
if os.path.exists(filepath) and os.path.isfile(filepath): if os.path.exists(filepath) and os.path.isfile(filepath):
os.unlink(filepath) os.unlink(filepath)
def writeLog(self, host, category, content): def writeLog(self, host, category, content):
if not self.fd_list.has_key(category): if not self.fd_list.has_key(category):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment