Skip to content

Commit af9f5ff

Browse files
committed
Use boolean type
1 parent 2ced257 commit af9f5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/ctl/cli_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def info( # noqa: PLR0915
418418
"groups": {},
419419
}
420420
client = initialize_client_sync()
421-
fetch_user_details = client.config.username or client.config.api_token
421+
fetch_user_details = bool(client.config.username) or bool(client.config.api_token)
422422

423423
try:
424424
info["infrahub_version"] = client.get_version()

0 commit comments

Comments
 (0)