Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Resolve inconsistency with Linode CLI #1519

Open
kordian2k opened this issue Jul 12, 2024 · 2 comments
Open

[Feature]: Resolve inconsistency with Linode CLI #1519

kordian2k opened this issue Jul 12, 2024 · 2 comments
Assignees
Labels
enhancement issues that request a enhancement keep prevent github from closing issue

Comments

@kordian2k
Copy link

Description

Running linode-cli configure by default creates a file ~/.config/linode-cli which looks like

[DEFAULT]
default-user = username

[username]
token = ...
...

On the other hand, the terraform provider uses the ~/.config/linode as the default. Moreover, the provider ignores the default user setting in the config file which leads to a HTTP 401 error even if the token is present.

If a change to the terraform provider is infeasible the documentation should be enhanced to reflect the inconsistency. The following configuration could be mentioned as a workaround:

provider "linode" {
  config_path = pathexpand("~/.config/linode-cli")
  config_profile = fileexists(pathexpand("~/.config/linode-cli")) ? (
    regex("default-user = (.*)", file(pathexpand("~/.config/linode-cli")))[0]
    ) : (
    "default"
  )
}

New or Affected Terraform Resources

No response

Potential Terraform Configuration

No response

@kordian2k kordian2k added the enhancement issues that request a enhancement label Jul 12, 2024
@zliang-akamai
Copy link
Member

zliang-akamai commented Jul 15, 2024

Hi @kordian2k, thanks for reporting the issue! We will be looking into this and let you know if there is any progress.

@zliang-akamai zliang-akamai self-assigned this Jul 15, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Aug 15, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
@zliang-akamai zliang-akamai reopened this Aug 20, 2024
@zliang-akamai zliang-akamai added the keep prevent github from closing issue label Aug 20, 2024
@github-actions github-actions bot removed the Stale label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that request a enhancement keep prevent github from closing issue
Projects
None yet
Development

No branches or pull requests

2 participants