summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2016-12-06 08:37:08 -0800
committerToshio Kuratomi <a.badger@gmail.com>2016-12-06 08:42:51 -0800
commit240c0ae65040df01192f9168e79fa67cb361fab5 (patch)
tree99a149e4ef7fd107a48fc8f30c32ff7aaf12326d
parent2bd42f2d35b74431d61aa4d50d4d84195fe6a904 (diff)
downloadansible-modules-extras-240c0ae65040df01192f9168e79fa67cb361fab5.tar.gz
Add metadata for xbps
Pass pyflakes
-rw-r--r--packaging/os/xbps.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/packaging/os/xbps.py b/packaging/os/xbps.py
index ad3a90b9..0bfe678a 100644
--- a/packaging/os/xbps.py
+++ b/packaging/os/xbps.py
@@ -19,6 +19,10 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
+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()