Tony Asleson
2014-07-24 21:01:38 UTC
If we didn't find the access group then g will be None
and we will be unable to do g.name.
Signed-off-by: Tony Asleson <***@redhat.com>
---
plugin/ontap/ontap.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/ontap/ontap.py b/plugin/ontap/ontap.py
index b490e78..33525a2 100644
--- a/plugin/ontap/ontap.py
+++ b/plugin/ontap/ontap.py
@@ -734,7 +734,7 @@ class Ontap(IStorageAreaNetwork, INfs):
raise LsmError(ErrorNumber.LSM_PLUGIN_BUG,
"access_group_create(): Unable to find access group "
- "%s just created!" % g.name)
+ "%s just created!" % name)
@handle_ontap_errors
def access_group_delete(self, access_group, flags=0):
and we will be unable to do g.name.
Signed-off-by: Tony Asleson <***@redhat.com>
---
plugin/ontap/ontap.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/ontap/ontap.py b/plugin/ontap/ontap.py
index b490e78..33525a2 100644
--- a/plugin/ontap/ontap.py
+++ b/plugin/ontap/ontap.py
@@ -734,7 +734,7 @@ class Ontap(IStorageAreaNetwork, INfs):
raise LsmError(ErrorNumber.LSM_PLUGIN_BUG,
"access_group_create(): Unable to find access group "
- "%s just created!" % g.name)
+ "%s just created!" % name)
@handle_ontap_errors
def access_group_delete(self, access_group, flags=0):
--
1.8.2.1
1.8.2.1