From 2cfa25c9308f0bb6fb0deb2b68a1dd6b6c121b4f Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 6 Dec 2016 08:37:08 -0800 Subject: [PATCH] Add metadata for xbps Pass pyflakes --- lib/ansible/modules/extras/packaging/os/xbps.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/os/xbps.py b/lib/ansible/modules/extras/packaging/os/xbps.py index ad3a90b9395..0bfe678ab89 100644 --- a/lib/ansible/modules/extras/packaging/os/xbps.py +++ b/lib/ansible/modules/extras/packaging/os/xbps.py @@ -19,6 +19,10 @@ # along with Ansible. If not, see . # +ANSIBLE_METADATA = {'status': ['preview'], + 'supported_by': 'community', + 'version': '1.0'} + DOCUMENTATION = ''' --- module: xbps @@ -94,6 +98,8 @@ packages: import os +from ansible.module_utils.basic import AnsibleModule + def is_installed(xbps_output): """Returns package install state""" @@ -293,8 +299,5 @@ def main(): remove_packages(module, xbps_path, pkgs) -# import module snippets -from ansible.module_utils.basic import * - if __name__ == "__main__": main()