Skip to content

Commit 2bc9a0a

Browse files
authored
Fix typos (#117)
* Fix typos * Fix small grammar
1 parent 4d34ad9 commit 2bc9a0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/plugins/subnet_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ Parameters
767767

768768
Layer-2 routing domain the vlan belongs to
769769

770-
If you have \ :emphasis:`vlan`\ with same number in different routing domains it need to be set on desired value
770+
If you have \ :emphasis:`vlan`\ with same number in different routing domains it needs to be set on desired value
771771

772772

773773
.. rst-class:: ansible-option-line

plugins/modules/subnet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
required: false
7272
default: default
7373
vrf:
74-
description: VRF which the sunet should belongs to
74+
description: VRF which the subnet should belongs to
7575
type: str
7676
required: false
7777
parent:
@@ -236,7 +236,7 @@ def main():
236236

237237
if 'cidr' in module_params:
238238
if '/' not in module_params['cidr']:
239-
module.fail_json(msg='missing prefix lenght in "cidr". Need <ipaddr>/<prefix_lenght>.')
239+
module.fail_json(msg='missing prefix lenght in "cidr". Need <ipaddr>/<prefix_length>.')
240240
else:
241241
IPNetwork = None
242242
if '.' in module_params['cidr'] and ':' not in module_params['cidr']:
@@ -246,7 +246,7 @@ def main():
246246
IPNetwork = ipaddress.IPv6Network
247247
module_params['mask'] = str(IPNetwork(u'%s' % (module_params['cidr'])).prefixlen)
248248
else:
249-
module.fail_json(msg='wrong formated "cidr". Need <ipaddr>/<prefix_lenght>.')
249+
module.fail_json(msg='wrong formatted "cidr". Need <ipaddr>/<prefix_length>.')
250250
module_params['subnet'] = str(IPNetwork(u'%s' % (module_params['cidr'])).network_address)
251251
del module_params['cidr']
252252

0 commit comments

Comments
 (0)