Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhati-pradeep committed Jun 29, 2022
1 parent 34548be commit bafacdc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,26 +98,26 @@ ansible-playbook examples/iaas/iaas.yml

| Name | Description |
| --- | --- |
| ntnx_image_placement_policy | Create, update or delete a image placement policy. |
| ntnx_image_placement_policies_info | List existing image placement policies. |
| ntnx_floating_ips | Create or delete a Floating Ip. |
| ntnx_floating_ips_info | List existing Floating_Ips. |
| ntnx_pbrs | Create or delete a PBR. |
| ntnx_pbrs_info | List existing PBRs. |
| ntnx_subnets | Create or delete a Subnet. |
| ntnx_subnets_info | List existing Subnets. |
| ntnx_vms | Create or delete a VM. |
| ntnx_vms_clone | Clone VM. |
| ntnx_vms_ova | Create OVA image from VM. |
| ntnx_vms_info | List existing VMs. |
| ntnx_vpcs | Create or delete a VPC. |
| ntnx_vpcs_info | List existing VPCs. |
| ntnx_subnets | Create or delete a Subnet. |
| ntnx_subnets_info | List existing Subnets. |
| ntnx_floating_ips | Create or delete a Floating Ip. |
| ntnx_floating_ips_info | List existing Floating_Ips. |
| ntnx_pbrs | Create or delete a PBR. |
| ntnx_pbrs_info | List existing PBRs. |
| ntnx_image_placement_policy | Create, update or delete a image placement policy. |
| ntnx_image_placement_policies_info | List existing image placement policies. |
| ntnx_foundation | Image nodes and create new cluster. |
| ntnx_foundation_bmc_ipmi_config | Configure IPMI IP address on BMC of nodes. |
| ntnx_foundation_image_upload | Upload hypervisor or AOS image to Foundation VM. |
| ntnx_foundation_aos_packages_info | List the AOS packages uploaded to Foundation. |
| ntnx_foundation_bmc_ipmi_config | Configure IPMI IP address on BMC of nodes. |
| ntnx_foundation_discover_nodes_info | List the nodes discovered by Foundation. |
| ntnx_foundation_hypervisor_images_info | List the hypervisor images uploaded to Foundation. |
| ntnx_foundation_image_upload | Upload hypervisor or AOS image to Foundation VM. |
| ntnx_foundation_node_network_info | Get node network information discovered by Foundation. |
| ntnx_foundation_central | Create a cluster out of nodes registered with Foundation Central. |
| ntnx_foundation_central_api_keys | Create a new api key which will be used by remote nodes to authenticate with Foundation Central. |
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/prism/image_placement_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def _build_spec_categories(self, payload, categories):
payload["metadata"]["categories_mapping"] = categories
return payload, None

def _build_spec_remove_categories(self, payload, flag):
if flag and payload["metadata"].get("categories_mapping"):
def _build_spec_remove_categories(self, payload, remove_categories):
if remove_categories and payload["metadata"].get("categories_mapping"):
payload["metadata"]["use_categories_mapping"] = True
payload["metadata"]["categories_mapping"] = {}
return payload, None
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/ntnx_image_placement_policies_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_policy(module, result):
result["response"] = resp


def get_particular_policies(module, result):
def get_specific_policies(module, result):
policy_obj = ImagePlacementPolicy(module)
spec, err = policy_obj.get_info_spec()
if err:
Expand All @@ -276,7 +276,7 @@ def run_module():
if module.params.get("policy_uuid"):
get_policy(module, result)
else:
get_particular_policies(module, result)
get_specific_policies(module, result)

module.exit_json(**result)

Expand Down

0 comments on commit bafacdc

Please sign in to comment.