Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings are overridden after login attempt #172

Open
xginn8 opened this issue Dec 5, 2019 · 0 comments
Open

Settings are overridden after login attempt #172

xginn8 opened this issue Dec 5, 2019 · 0 comments

Comments

@xginn8
Copy link
Contributor

xginn8 commented Dec 5, 2019

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/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant