mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
Pylint fixes for packaging (#23553)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
040fb4435a
commit
8ba069315e
3 changed files with 45 additions and 44 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
# (c) 2015, Kevin Brebanov <https://github.com/kbrebanov>
|
||||
# Based on pacman (Afterburn <http://github.com/afterburn>, Aaron Bull Schaefer <aaron@elasticdog.com>)
|
||||
# and apt (Matthew Williams <matthew@flowroute.com>>) modules.
|
||||
# and apt (Matthew Williams <matthew@flowroute.com>) modules.
|
||||
#
|
||||
# This module is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -114,8 +114,10 @@ EXAMPLES = '''
|
|||
update_cache: yes
|
||||
'''
|
||||
|
||||
import os
|
||||
|
||||
import re
|
||||
# Import module snippets.
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
def update_package_db(module):
|
||||
cmd = "%s update" % (APK_PATH)
|
||||
|
@ -268,7 +270,6 @@ def main():
|
|||
elif p['state'] == 'absent':
|
||||
remove_packages(module, p['name'])
|
||||
|
||||
# Import module snippets.
|
||||
from ansible.module_utils.basic import *
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue