Skip to content

Commit

Permalink
* [apiclient] fix default version bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 committed Nov 23, 2023
1 parent 4413576 commit cd0f974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apiclient/harvester_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, endpoint, token=None, session=None):

self._version = None
self.endpoint = endpoint
self.load_managers("")
self.load_managers()

@property
def cluster_version(self):
Expand All @@ -56,7 +56,7 @@ def cluster_version(self):
def __repr__(self):
return f"HarvesterAPI({self.endpoint!r}, {self.session.headers['Authorization']!r})"

def load_managers(self, version=""):
def load_managers(self, version="0.0.0"):
self.hosts = mgrs.HostManager.for_version(version)(self, version)
self.keypairs = mgrs.KeypairManager.for_version(version)(self, version)
self.images = mgrs.ImageManager.for_version(version)(self, version)
Expand Down

0 comments on commit cd0f974

Please sign in to comment.