summaryrefslogtreecommitdiff
path: root/system/cron.py
diff options
context:
space:
mode:
authorFabio Alessandro Locati <fale@redhat.com>2016-12-05 17:04:51 +0000
committerFabio Alessandro Locati <fale@redhat.com>2016-12-05 17:04:51 +0000
commita598c9bc92944e3a7c86d1d5df55616faa72869f (patch)
tree0e3c8367b9485877a5001a28c18f29b59c93a596 /system/cron.py
parent60b82f757dade5eefea905f97a4ebdc1d9ef1937 (diff)
downloadansible-modules-core-a598c9bc92944e3a7c86d1d5df55616faa72869f.tar.gz
Call main in conditional way - system
Diffstat (limited to 'system/cron.py')
-rw-r--r--system/cron.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/cron.py b/system/cron.py
index 34307c6b..3157b48b 100644
--- a/system/cron.py
+++ b/system/cron.py
@@ -771,5 +771,5 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
-main()
-
+if __name__ == '__main__':
+ main()