Permalink
Browse files

fix a create quick vm issue

  • Loading branch information...
1 parent 19b2400 commit 149b8463f97d0215d5bf106d36cc858fb11ab456 @guangyang guangyang committed Oct 17, 2013
@@ -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()

0 comments on commit 149b846

Please sign in to comment.