Pylint fixes for packaging (#23553)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/24144/head
Abhijeet Kasurde 8 years ago committed by Matt Martz
parent 040fb4435a
commit 8ba069315e

@ -3,7 +3,7 @@
# (c) 2015, Kevin Brebanov <https://github.com/kbrebanov> # (c) 2015, Kevin Brebanov <https://github.com/kbrebanov>
# Based on pacman (Afterburn <http://github.com/afterburn>, Aaron Bull Schaefer <aaron@elasticdog.com>) # 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 # 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 # it under the terms of the GNU General Public License as published by
@ -114,8 +114,10 @@ EXAMPLES = '''
update_cache: yes update_cache: yes
''' '''
import os
import re import re
# Import module snippets.
from ansible.module_utils.basic import AnsibleModule
def update_package_db(module): def update_package_db(module):
cmd = "%s update" % (APK_PATH) cmd = "%s update" % (APK_PATH)
@ -268,7 +270,6 @@ def main():
elif p['state'] == 'absent': elif p['state'] == 'absent':
remove_packages(module, p['name']) remove_packages(module, p['name'])
# Import module snippets.
from ansible.module_utils.basic import *
if __name__ == '__main__': if __name__ == '__main__':
main() main()

Loading…
Cancel
Save