Skip to content

fix: fix default hostname when hosts.yml is empty#203

Merged
pinglin merged 1 commit intomainfrom
pinglin/fix-default-host
Oct 24, 2023
Merged

fix: fix default hostname when hosts.yml is empty#203
pinglin merged 1 commit intomainfrom
pinglin/fix-default-host

Conversation

@pinglin
Copy link
Copy Markdown
Member

@pinglin pinglin commented Oct 24, 2023

Because

  • when hosts.yml is empty, the default_hostname value in config.yml should fallback to the default hostname api.instill.tech.
  • the bug fails inst auth login when the user run inst local deploy at the very beginning (with a fresh inst installed) followed by inst local undeploy right away, where the default_hostname will be left with localhost:8080.
  • with a fresh inst installed, inst auth login uses the default hostname api.instill.tech.

This commit

  • fix the bug

@pinglin pinglin requested a review from heiruwu as a code owner October 24, 2023 17:41
@pinglin pinglin merged commit 58967c0 into main Oct 24, 2023
@pinglin pinglin deleted the pinglin/fix-default-host branch October 24, 2023 17:41
pinglin added a commit that referenced this pull request Oct 24, 2023
Because

- when `hosts.yml` is empty, the `default_hostname` value in
`config.yml` should fallback to the default hostname `api.instill.tech`.
- the bug fails `inst auth login` when the user run `inst local deploy`
at the very beginning (with a fresh `inst` installed) followed by `inst
local undeploy` right away, where the `default_hostname` will be left
with `localhost:8080`.
- with a fresh `inst` installed, `inst auth login` uses the default
hostname `api.instill.tech`.

This commit

- fix the bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: 🚧 Planned

Development

Successfully merging this pull request may close these issues.

2 participants