Skip to content

Commit

Permalink
Fix sanity and add doc: Gihub issue 78
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-bish committed Feb 10, 2022
1 parent cb75f0b commit 8c11a24
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 deletions.
Binary file added nutanix-ncp-1.0.0.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion plugins/module_utils/prism/subnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _get_default_dhcp_spec(self):
)


##### Helper functions #####
# Helper functions


def get_subnet_uuid(config, module):
Expand Down
39 changes: 32 additions & 7 deletions plugins/modules/ntnx_vpcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,39 @@
default: True
name:
description: vpc Name
required: False
required: True
type: str
vpc_uuid:
description: vpc UUID
type: str
#TODO here should be additional arguments documentation
dns_servers:
description: List of DNS servers IPs
type: list
elements: str
routable_ips:
description: Address space within the VPC which can talk externally without NAT. These are in effect when No-NAT External subnet is used.
type: list
elements: dict
suboptions:
network_ip:
description: ip address
type: str
network_prefix:
description: Subnet ip address prefix length
type: int
external_subnets:
description: A subnet with external connectivity
type: list
elements: dict
suboptions:
subnet_uuid:
description: Subnet UUID
type: str
subnet_name:
description: Subnet Name
type: str
author:
- Prem Karat (@premkarat)
- Gevorg Khachatryan (@Gevorg-Khachatryan-97)
- Alaa Bishtawi (@alaa-bish)
- Dina AbuHijleh (@dina-abuhijleh)
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions scripts/create_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ def _get_default_spec(self):


def create_module(name):
with open("plugins/modules/ntnx_{0}s.py".format(name), "w") as f:
with open("plugins/modules/ntnx_{0}s.py".format(name), "wb") as f:
f.write(
module_content.replace("object", name.lower()).replace(
"Object", name.capitalize()
)
)

with open("plugins/module_utils/prism/{0}s.py".format(name), "w") as f:
with open("plugins/module_utils/prism/{0}s.py".format(name), "wb") as f:
f.write(
object_content.replace("object", name.lower()).replace(
"Object", name.capitalize()
Expand Down

0 comments on commit 8c11a24

Please sign in to comment.