Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug and documentation issue #44793

Merged
merged 1 commit into from
Aug 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/ansible/modules/storage/netapp/na_ontap_cg_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@
- 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:
Expand Down Expand Up @@ -176,7 +179,7 @@ def cg_start(self):
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" %
Expand Down