Skip to content

Commit

Permalink
day2: fix api_vip deprecation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Feb 29, 2024
1 parent d953a6f commit 5dcdac6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ailib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,8 @@ def create_day2_cluster(self, name, overrides={}):
cluster = self.client.v2_get_cluster(cluster_id=cluster_id)
openshift_version = cluster.openshift_version
ssh_public_key = cluster.image_info.ssh_public_key
# api_name = f"api.{cluster_name}.{cluster.base_dns_domain}"
if api_vip_dnsname is None:
api_vip_dnsname = cluster.api_vips[0]
api_vip_dnsname = cluster.api_vips[0].ip
warning(f"Forcing api_vip_dnsname to {api_vip_dnsname}")
response = self.client.v2_download_cluster_files(cluster_id=cluster_id, file_name="install-config.yaml",
_preload_content=False)
Expand Down

0 comments on commit 5dcdac6

Please sign in to comment.