Fix retyping issue of function 58/16058/5
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 2 Jul 2019 22:23:01 +0000 (15:23 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 2 Jul 2019 23:54:33 +0000 (16:54 -0700)
There was a subtle bug where a function call was being overwritten by a
local variable of the same name and then a call to the function was
being attempted.

Change-Id: I7316df0c773db347ccb1e7eb79e2f40fee3a9db2
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
lftools/lfidapi.py
releasenotes/notes/lfidapi-type-error-fix-aff74c5a7ea11a34.yaml [new file with mode: 0644]

index 3033c13..05a6a82 100755 (executable)
@@ -87,8 +87,8 @@ def helper_invite(email, group):
 
 def helper_create_group(group):
     """Create group."""
-    check_response_code = helper_check_group_exists(group)
-    if check_response_code == 200:
+    response_code = helper_check_group_exists(group)
+    if response_code == 200:
         print("Group {} already exists exiting...".format(group))
     else:
         access_token, url = oauth_helper()
diff --git a/releasenotes/notes/lfidapi-type-error-fix-aff74c5a7ea11a34.yaml b/releasenotes/notes/lfidapi-type-error-fix-aff74c5a7ea11a34.yaml
new file mode 100644 (file)
index 0000000..423f15a
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    There was a subtle bug where a function call was being overwritten by a
+    local variable of the same name and then a call to the function was
+    being attempted.