Skip to content

Commit

Permalink
Use the GA command for resetting windows password. (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannaranjo authored Jun 22, 2017
1 parent a3e3436 commit f920025
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static Task<WindowsInstanceCredentials> ResetWindowsCredentialsAsync(
string userName,
GCloudContext context) =>
GetJsonOutputAsync<WindowsInstanceCredentials>(
$"beta compute reset-windows-password {instanceName} --zone={zoneName} --user=\"{userName}\" --quiet ",
$"compute reset-windows-password {instanceName} --zone={zoneName} --user=\"{userName}\" --quiet ",
context);

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,6 @@ private async Task<WindowsInstanceCredentials> CreateOrResetCredentials(string u

Debug.WriteLine($"Resetting the password for the user {user}");

// Check that gcloud is in the right state to invoke the reset credentials method.
if (!await GCloudWrapperUtils.VerifyGCloudDependencies("beta"))
{
Debug.WriteLine("Missing gcloud dependencies for resetting password.");
return null;
}

var context = new GCloudContext
{
CredentialsPath = CredentialsStore.Default.CurrentAccountPath,
Expand Down

0 comments on commit f920025

Please sign in to comment.