mirror of https://github.com/rancher/ui.git
Merge pull request #3253 from phillc/linode-ui-fix
[UI] Check Linode cloud credential against profile
This commit is contained in:
commit
81c62d64ba
|
|
@ -183,7 +183,7 @@ export default Component.extend(ViewNewEdit, {
|
||||||
if (cloudCredentialType === 'linode') {
|
if (cloudCredentialType === 'linode') {
|
||||||
set(auth, 'token', get(this, 'config.token'));
|
set(auth, 'token', get(this, 'config.token'));
|
||||||
|
|
||||||
return this.linode.request(auth, 'account').then(() => {
|
return this.linode.request(auth, 'profile').then(() => {
|
||||||
set(this, 'validatingKeys', false);
|
set(this, 'validatingKeys', false);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue