Skip to content

Commit

Permalink
fix a create quick vm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guangyang committed Oct 17, 2013
1 parent 19b2400 commit 149b846
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,18 +586,18 @@ protected bool DoesCloudServiceExist(string serviceName)
WriteVerboseWithTimestamp(string.Format(Resources.QuickVMBeginOperation, CommandRuntime));
var response = this.ComputeClient.HostedServices.CheckNameAvailability(serviceName);
WriteVerboseWithTimestamp(string.Format(Resources.QuickVMCompletedOperation, CommandRuntime));
return response.IsAvailable;
return !response.IsAvailable;
}
catch (CloudException ex)
{
if (ex.Response.StatusCode == HttpStatusCode.NotFound)
{
return false;
return true;
}
this.WriteExceptionDetails(ex);
}

return false;
return true;
}

protected void ValidateParameters()
Expand Down

0 comments on commit 149b846

Please sign in to comment.