Skip to content

Commit

Permalink
fix(gce) prevents race condition in how credentials are set on command (
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach committed Mar 16, 2017
1 parent 3d4e5f4 commit 127d747
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,8 @@ module.exports = angular.module('spinnaker.gce.serverGroupCommandBuilder.service
command.interestingHealthProviderNames = ['Google'];
}

attemptToSetValidCredentials(application, defaultCredentials, command);

return $q.when(command);
return attemptToSetValidCredentials(application, defaultCredentials, command)
.then(() => command);
}

// Only used to prepare view requiring template selecting
Expand Down

0 comments on commit 127d747

Please sign in to comment.