mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Add better error message when specified network doesn't exist and ipv4_range is not specified
This commit is contained in:
parent
65f12bccb6
commit
256c840942
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ def main():
|
||||||
# user wants to create a new network that doesn't yet exist
|
# user wants to create a new network that doesn't yet exist
|
||||||
if name and not network:
|
if name and not network:
|
||||||
if not ipv4_range:
|
if not ipv4_range:
|
||||||
module.fail_json(msg="Missing required 'ipv4_range' parameter",
|
module.fail_json(msg="Network '" + name + "' is not found. To create network, 'ipv4_range' parameter is required",
|
||||||
changed=False)
|
changed=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue