Skip to content

Commit de93866

Browse files
author
Thomas
committed
Authentication required if method is other than GET
1 parent f74e371 commit de93866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, ssl_verify=False, use_ssl=True, host=None, auth_token=None, a
3636

3737
def __request(self, method, params=None, key=None, body=None, url=None):
3838

39-
if method is 'post' or 'patch' or 'delete':
39+
if method is not 'GET':
4040
if not self.auth_token:
4141
raise exceptions.AuthException('Authentication credentials were not provided')
4242

0 commit comments

Comments
 (0)