1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix bug and documentation issue (#44793)

This commit is contained in:
Chris Archibald 2018-08-28 15:32:44 -07:00 committed by ansibot
parent 5e814d8d17
commit 408868ed49

View file

@ -24,12 +24,15 @@ options:
- If you want to create a snapshot.
default: present
vserver:
required: true
description:
- Name of the vserver.
volumes:
required: true
description:
- A list of volumes in this filer that is part of this CG operation.
snapshot:
required: true
description:
- The provided name of the snapshot that is created in each volume.
timeout:
@ -176,7 +179,7 @@ class NetAppONTAPCGSnapshot(object):
try:
cgresult = self.server.invoke_successfully(
cgstart, enable_tunneling=True)
if cgresult.has_attr('cg-id'):
if cgresult.get_child_by_name('cg-id'):
self.cgid = cgresult['cg-id']
except netapp_utils.zapi.NaApiError as error:
self.module.fail_json(msg="Error creating CG snapshot %s: %s" %