Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions linodecli/configuration/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def plugin_get_value(self, key: str) -> Optional[Any]:
"No running plugin to retrieve configuration for!"
)

username = self.username or self.default_username()
username = self.username or self.default_username() or "DEFAULT"
full_key = f"plugin-{self.running_plugin}-{key}"

if not self.config.has_option(username, full_key):
Expand Down Expand Up @@ -553,7 +553,7 @@ def _handle_no_default_user(self): # pylint: disable=too-many-branches

if len(users) == 0:
# config is new or _really_ old
token = self.config.get("DEFAULT", "token")
token = self.config.get("DEFAULT", "token", fallback=None)

if token is not None:
# there's a token in the config - configure that user
Expand Down