From 878378ce2813c639284e70b53c9cfd34bb090500 Mon Sep 17 00:00:00 2001 From: Pradeepsingh Bhati Date: Thu, 4 Jan 2024 13:09:53 +0530 Subject: [PATCH] 1. Bump up coverage. 2. Lint fixes --- plugins/doc_fragments/ntnx_foundation_base_module.py | 2 +- plugins/inventory/ntnx_prism_vm_inventory.py | 5 +++-- requirements.txt | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/doc_fragments/ntnx_foundation_base_module.py b/plugins/doc_fragments/ntnx_foundation_base_module.py index 13dcc6bdf..7834f32b8 100644 --- a/plugins/doc_fragments/ntnx_foundation_base_module.py +++ b/plugins/doc_fragments/ntnx_foundation_base_module.py @@ -22,7 +22,7 @@ class ModuleDocFragment(object): description: - PC port type: str - default: 8000 + default: "8000" required: false timeout: description: diff --git a/plugins/inventory/ntnx_prism_vm_inventory.py b/plugins/inventory/ntnx_prism_vm_inventory.py index 85a1d0ba7..0eaf22972 100644 --- a/plugins/inventory/ntnx_prism_vm_inventory.py +++ b/plugins/inventory/ntnx_prism_vm_inventory.py @@ -9,7 +9,6 @@ DOCUMENTATION = r""" name: ntnx_prism_vm_inventory - plugin_type: inventory short_description: Get a list of Nutanix VMs for ansible dynamic inventory. description: - Get a list of Nutanix VMs for ansible dynamic inventory. @@ -17,7 +16,9 @@ author: - "Balu George (@balugeorge)" - "Prem Karat (@premkarat)" - inventory: ntnx_prism_vm_inventory + requirements: + - "json" + - "tempfile" options: plugin: description: Name of the plugin diff --git a/requirements.txt b/requirements.txt index 38131e9a1..a380011ff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,6 @@ requests~=2.26.0 black==21.7b0 flake8==4.0.1 isort==5.9.3 -coverage==4.5.4 +coverage==6.5.0 shyaml==0.6.2 markupsafe==2