diff options
author | Joren Vrancken <jorenvrancken@gmail.com> | 2018-07-29 13:46:06 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-07-31 12:06:56 -0700 |
commit | b954917761eba2ddcdc8cf9dc811d668f7728eff (patch) | |
tree | b19d2d148901a088479cfaa9ad5b439f7159be7a /lib/ansible/modules/monitoring | |
parent | 9e310558ee259515b52e57997778fd7d6ffe9fcd (diff) | |
download | ansible-b954917761eba2ddcdc8cf9dc811d668f7728eff.tar.gz |
Surround top-level function and class definitions with two blank lines.
Diffstat (limited to 'lib/ansible/modules/monitoring')
7 files changed, 7 insertions, 0 deletions
diff --git a/lib/ansible/modules/monitoring/grafana_dashboard.py b/lib/ansible/modules/monitoring/grafana_dashboard.py index f9346aa049..a07d33b916 100644 --- a/lib/ansible/modules/monitoring/grafana_dashboard.py +++ b/lib/ansible/modules/monitoring/grafana_dashboard.py @@ -441,5 +441,6 @@ def main(): ) return + if __name__ == '__main__': main() diff --git a/lib/ansible/modules/monitoring/grafana_datasource.py b/lib/ansible/modules/monitoring/grafana_datasource.py index d6145790f4..00d8c6f087 100644 --- a/lib/ansible/modules/monitoring/grafana_datasource.py +++ b/lib/ansible/modules/monitoring/grafana_datasource.py @@ -536,5 +536,6 @@ def main(): ) return + if __name__ == '__main__': main() diff --git a/lib/ansible/modules/monitoring/grafana_plugin.py b/lib/ansible/modules/monitoring/grafana_plugin.py index 5cf043917f..c6be8a3c2b 100644 --- a/lib/ansible/modules/monitoring/grafana_plugin.py +++ b/lib/ansible/modules/monitoring/grafana_plugin.py @@ -226,5 +226,6 @@ def main(): ) return + if __name__ == '__main__': main() diff --git a/lib/ansible/modules/monitoring/sensu_client.py b/lib/ansible/modules/monitoring/sensu_client.py index 4da3adabb3..fe1c739fd9 100644 --- a/lib/ansible/modules/monitoring/sensu_client.py +++ b/lib/ansible/modules/monitoring/sensu_client.py @@ -246,5 +246,6 @@ def main(): module.fail_json(msg='Unable to write file {0}: {1}'.format(path, str(e))) + if __name__ == '__main__': main() diff --git a/lib/ansible/modules/monitoring/sensu_handler.py b/lib/ansible/modules/monitoring/sensu_handler.py index 88d6341825..be69e3d55e 100644 --- a/lib/ansible/modules/monitoring/sensu_handler.py +++ b/lib/ansible/modules/monitoring/sensu_handler.py @@ -259,5 +259,6 @@ def main(): module.fail_json(msg='Unable to write file {0}: {1}'.format(path, str(e))) + if __name__ == '__main__': main() diff --git a/lib/ansible/modules/monitoring/zabbix/zabbix_group_facts.py b/lib/ansible/modules/monitoring/zabbix/zabbix_group_facts.py index 20f822c665..64c0486a53 100644 --- a/lib/ansible/modules/monitoring/zabbix/zabbix_group_facts.py +++ b/lib/ansible/modules/monitoring/zabbix/zabbix_group_facts.py @@ -128,5 +128,6 @@ def main(): host_groups = host.get_group_ids_by_group_names(hostgroup_name) module.exit_json(host_groups=host_groups) + if __name__ == '__main__': main() diff --git a/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py b/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py index d6381ddbe1..99bb7667fb 100644 --- a/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py +++ b/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py @@ -207,5 +207,6 @@ def main(): else: module.exit_json(ok=False, hosts=[], result="No Host present") + if __name__ == '__main__': main() |