Skip to content

dbsqlcli.main.apply_credentials_from_cfg returns only three values when not cfg.get("credentials") #46

@aucampia

Description

@aucampia

def apply_credentials_from_cfg(hostname, http_path, access_token, auth_type, cfg):
"""
Returns http_path, hostname, access_token and auth_type from the passed configuration or from clirc file.
"""
if not cfg.get("credentials"):
return hostname, http_path, access_token

This function should return four values:

# Prefer CLI arguments. Fall back to the clirc file otherwise
hostname, http_path, access_token, auth_type = apply_credentials_from_cfg(
hostname, http_path, access_token, auth_type, _cfg
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions