Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only run this findall operation once #20

Merged
merged 1 commit into from Aug 23, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -638,8 +638,9 @@ def get_syslog_ng_source(default_config_file_path):
re.MULTILINE | re.IGNORECASE)
output_list = output.split('}')
for st in output_list:
if len(compiled_regex.findall(st.replace('\n',''))) > 0:
return compiled_regex.findall(st.replace('\n',''))[0]
result = compiled_regex.findall(st.replace('\n',''))
if result:
return result[0]
return source

def get_installed_syslog_configuration(syslog_id):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.