Skip to content

Commit

Permalink
remove unused var in fn signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-D-Lewis committed Mar 29, 2024
1 parent 082cc41 commit 3d6726f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_nebari/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def render_config(
if cloud_provider == ProviderEnum.do:
do_region = region or constants.DO_DEFAULT_REGION
do_kubernetes_versions = kubernetes_version or get_latest_kubernetes_version(
digital_ocean.kubernetes_versions(do_region)
digital_ocean.kubernetes_versions()
)
config["digital_ocean"] = {
"kubernetes_version": do_kubernetes_versions,
Expand Down
2 changes: 1 addition & 1 deletion src/_nebari/provider/cloud/digital_ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def regions():
return _kubernetes_options()["options"]["regions"]


def kubernetes_versions(region) -> typing.List[str]:
def kubernetes_versions() -> typing.List[str]:
"""Return list of available kubernetes supported by cloud provider. Sorted from oldest to latest."""
supported_kubernetes_versions = sorted(
[_["slug"].split("-")[0] for _ in _kubernetes_options()["options"]["versions"]]
Expand Down
2 changes: 1 addition & 1 deletion src/_nebari/subcommands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def check_cloud_provider_kubernetes_version(
f"Invalid Kubernetes version `{kubernetes_version}`. Please refer to the GCP docs for a list of valid versions: {versions}"
)
elif cloud_provider == ProviderEnum.do.value.lower():
versions = digital_ocean.kubernetes_versions(region)
versions = digital_ocean.kubernetes_versions()

if not kubernetes_version or kubernetes_version == LATEST:
kubernetes_version = get_latest_kubernetes_version(versions)
Expand Down

0 comments on commit 3d6726f

Please sign in to comment.