mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
Fix atomic pylint issues
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
4e8e366739
commit
db6d818865
2 changed files with 17 additions and 12 deletions
|
@ -63,6 +63,10 @@ msg:
|
||||||
sample: 'Already on latest'
|
sample: 'Already on latest'
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
# import module snippets
|
||||||
|
from ansible.module_utils.basic import AnsibleModule, os
|
||||||
|
|
||||||
|
|
||||||
def core(module):
|
def core(module):
|
||||||
revision = module.params['revision']
|
revision = module.params['revision']
|
||||||
args = []
|
args = []
|
||||||
|
@ -105,7 +109,5 @@ def main():
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
|
|
||||||
# import module snippets
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -73,6 +73,11 @@ msg:
|
||||||
sample: [u'Using default tag: latest ...']
|
sample: [u'Using default tag: latest ...']
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
# import module snippets
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
|
|
||||||
def do_upgrade(module, image):
|
def do_upgrade(module, image):
|
||||||
args = ['atomic', 'update', '--force', image]
|
args = ['atomic', 'update', '--force', image]
|
||||||
rc, out, err = module.run_command(args, check_rc=False)
|
rc, out, err = module.run_command(args, check_rc=False)
|
||||||
|
@ -138,7 +143,5 @@ def main():
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
|
|
||||||
# import module snippets
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue