Skip to content

Settings are overridden after login attempt #172

@xginn8

Description

@xginn8

When trying to modify settings for login, after attempting the login the settings are reverted and the login fails as Unauthorized:

In [1]: token="<<redacted>>"                                                  
In [2]: from balena import Balena                                                                                                                     
In [3]: balena = Balena()                                                                                                                             
In [4]: balena.settings.get('pine_endpoint')                                                                                                          
Out[4]: 'https://api.balena-staging.com/v5/'
In [5]: balena.settings.set('pine_endpoint', 'https://api.balena-cloud.com/v5/')                                                                      
In [6]: balena.settings.get('pine_endpoint')                                                                                                          
Out[6]: 'https://api.balena-cloud.com/v5/'
In [7]: balena.auth.login_with_token(token)                                                                                                           
In [8]: balena.settings.get('pine_endpoint')                                                                                                          
Out[8]: 'https://api.balena-staging.com/v5/'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions