Skip to content

Commit

Permalink
Removed the modules using deprecated v4 sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavbansal29 committed Dec 12, 2024
1 parent 6278267 commit 07cd7dc
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 464 deletions.
146 changes: 0 additions & 146 deletions plugins/modules/ntnx_volume_groups_categories_info_v2.py

This file was deleted.

38 changes: 3 additions & 35 deletions plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,35 +131,6 @@ def get_module_spec():
return module_args


def get_vg_iscsi_clients(module, result):
vgs = get_vg_api_instance(module)
volume_group_ext_id = module.params.get("volume_group_ext_id")

sg = SpecGenerator(module)
kwargs, err = sg.get_info_spec(attr=module.params)

if err:
result["error"] = err
module.fail_json(msg="Failed generating info Spec", **result)

try:
resp = vgs.list_external_iscsi_attachments_by_volume_group_id(
volumeGroupExtId=volume_group_ext_id, **kwargs
)
except Exception as e:
raise_api_exception(
module=module,
exception=e,
msg="Api Exception raised while fetching ISCSI clients attached to VGs",
)

result["volume_group_ext_id"] = volume_group_ext_id
resp = strip_internal_attributes(resp.to_dict()).get("data")
if not resp:
resp = []
result["response"] = resp


def get_iscsi_client(module, result):
clients = get_iscsi_client_api_instance(module)
ext_id = module.params.get("ext_id")
Expand Down Expand Up @@ -214,13 +185,10 @@ def run_module():
)
remove_param_with_none_value(module.params)
result = {"changed": False, "error": None, "response": None}
if module.params.get("volume_group_ext_id"):
get_vg_iscsi_clients(module, result)
if module.params.get("ext_id"):
get_iscsi_client(module, result)
else:
if module.params.get("ext_id"):
get_iscsi_client(module, result)
else:
get_iscsi_clients(module, result)
get_iscsi_clients(module, result)

module.exit_json(**result)

Expand Down
147 changes: 0 additions & 147 deletions plugins/modules/ntnx_volume_groups_vms_info_v2.py

This file was deleted.

Loading

0 comments on commit 07cd7dc

Please sign in to comment.