Skip to content

Commit

Permalink
Merge branch 'development' into feature/zeroconf
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner authored Jul 2, 2020
2 parents 6fbad96 + f4b73d7 commit 6b5dfa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evasdk/Eva.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def versions(self):
self.__logger.debug('Eva.versions called')
return self.__http_client.api_versions()

def name(self):
self.__logger.debug('Eva.name called')
return self.__http_client.name()

# Auth
def auth_renew_session(self):
Expand Down
6 changes: 6 additions & 0 deletions evasdk/eva_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ def api_versions(self):
eva_error('api_versions request error', r)
return r.json()

def name(self):
r = self.api_call_no_auth('GET', 'name')
if r.status_code != 200:
eva_error('api_versions request error', r)
return r.json()

# AUTH
def auth_renew_session(self):
self.__logger.debug('Renewing session token {}'.format(self.session_token))
Expand Down

0 comments on commit 6b5dfa4

Please sign in to comment.