From 5cbea70a6587b7bc5e8a4da912549fbc63ff6235 Mon Sep 17 00:00:00 2001 From: Chris Archibald Date: Fri, 15 Feb 2019 13:01:23 -0800 Subject: [PATCH] Bug fix --- lib/ansible/modules/storage/netapp/na_elementsw_backup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/storage/netapp/na_elementsw_backup.py b/lib/ansible/modules/storage/netapp/na_elementsw_backup.py index 9f3647f895b..d8c580ffc7e 100644 --- a/lib/ansible/modules/storage/netapp/na_elementsw_backup.py +++ b/lib/ansible/modules/storage/netapp/na_elementsw_backup.py @@ -125,7 +125,7 @@ import time HAS_SF_SDK = netapp_utils.has_sf_sdk() try: import solidfire.common -except Exception: +except: HAS_SF_SDK = False @@ -136,7 +136,8 @@ class ElementSWBackup(object): """ Setup Ansible parameters and SolidFire connection """ - self.argument_spec = {} + self.argument_spec = netapp_utils.ontap_sf_host_argument_spec() + self.argument_spec.update(dict( src_hostname=dict(aliases=['hostname'], required=True, type='str'),