Skip to content

Commit

Permalink
Declare token to mitigate 'no token' exception when connection fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelrebel committed Aug 4, 2016
1 parent 864598f commit 2952072
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyIsis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def __init__(self, hostname, username, password):
self.hostname = hostname
self.username = username
self.password = password

# must be present for __del__ to gracefully exit failed session
self.token = None

url = ISIS_SOAP_URL.format(hostname=self.hostname,
port=ISIS_SOAP_PORT)
Expand Down

0 comments on commit 2952072

Please sign in to comment.