fix bug and documentation issue (#44793)

pull/44797/head
Chris Archibald 6 years ago committed by ansibot
parent 5e814d8d17
commit 408868ed49

@ -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…
Cancel
Save