Skip to content

Commit

Permalink
refresh token when beginning to wait hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 22, 2024
1 parent 374236b commit 197d259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ailib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ def update_host(self, hostname, overrides):

def wait_hosts(self, name, number=3, filter_installed=False, require_inventory=False):
client = self.client
self.refresh_token(self.token, self.offlinetoken)
infra_env_id = self.get_infra_env_id(name)
infra_env = client.get_infra_env(infra_env_id=infra_env_id)
cluster_id = infra_env.cluster_id
Expand Down

0 comments on commit 197d259

Please sign in to comment.