mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
fix bug and documentation issue (#44793)
This commit is contained in:
parent
5e814d8d17
commit
408868ed49
1 changed files with 4 additions and 1 deletions
|
@ -24,12 +24,15 @@ options:
|
||||||
- If you want to create a snapshot.
|
- If you want to create a snapshot.
|
||||||
default: present
|
default: present
|
||||||
vserver:
|
vserver:
|
||||||
|
required: true
|
||||||
description:
|
description:
|
||||||
- Name of the vserver.
|
- Name of the vserver.
|
||||||
volumes:
|
volumes:
|
||||||
|
required: true
|
||||||
description:
|
description:
|
||||||
- A list of volumes in this filer that is part of this CG operation.
|
- A list of volumes in this filer that is part of this CG operation.
|
||||||
snapshot:
|
snapshot:
|
||||||
|
required: true
|
||||||
description:
|
description:
|
||||||
- The provided name of the snapshot that is created in each volume.
|
- The provided name of the snapshot that is created in each volume.
|
||||||
timeout:
|
timeout:
|
||||||
|
@ -176,7 +179,7 @@ class NetAppONTAPCGSnapshot(object):
|
||||||
try:
|
try:
|
||||||
cgresult = self.server.invoke_successfully(
|
cgresult = self.server.invoke_successfully(
|
||||||
cgstart, enable_tunneling=True)
|
cgstart, enable_tunneling=True)
|
||||||
if cgresult.has_attr('cg-id'):
|
if cgresult.get_child_by_name('cg-id'):
|
||||||
self.cgid = cgresult['cg-id']
|
self.cgid = cgresult['cg-id']
|
||||||
except netapp_utils.zapi.NaApiError as error:
|
except netapp_utils.zapi.NaApiError as error:
|
||||||
self.module.fail_json(msg="Error creating CG snapshot %s: %s" %
|
self.module.fail_json(msg="Error creating CG snapshot %s: %s" %
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue