We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 184b017 commit 1bfb7aaCopy full SHA for 1bfb7aa
1 file changed
linodecli/configuration/config.py
@@ -255,7 +255,7 @@ def plugin_get_value(self, key: str) -> Optional[Any]:
255
"No running plugin to retrieve configuration for!"
256
)
257
258
- username = self.username or self.default_username()
+ username = self.username or self.default_username() or "DEFAULT"
259
full_key = f"plugin-{self.running_plugin}-{key}"
260
261
if not self.config.has_option(username, full_key):
@@ -553,7 +553,7 @@ def _handle_no_default_user(self): # pylint: disable=too-many-branches
553
554
if len(users) == 0:
555
# config is new or _really_ old
556
- token = self.config.get("DEFAULT", "token")
+ token = self.config.get("DEFAULT", "token", fallback=None)
557
558
if token is not None:
559
# there's a token in the config - configure that user
0 commit comments