mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 04:04:23 -07:00
Make main() only run when invoked as a script (style cleanup)
This commit is contained in:
parent
314843b431
commit
7b1704640e
1 changed files with 2 additions and 1 deletions
|
@ -1776,4 +1776,5 @@ def main():
|
||||||
|
|
||||||
# import module bits
|
# import module bits
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
main()
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue