Skip to content

Commit

Permalink
Removed "ResourceNotFound" check from vmClient
Browse files Browse the repository at this point in the history
Removed "ResourceNotFound" check from vmClient
  • Loading branch information
ruslangabitov committed Oct 3, 2014
1 parent 116b917 commit a870bf1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions clients/vmClient/vmClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ func GetVMDeployment(cloudserviceName, deploymentName string) (*VMDeployment, er
requestURL := fmt.Sprintf(azureDeploymentURL, cloudserviceName, deploymentName)
response, azureErr := azure.SendAzureGetRequest(requestURL)
if azureErr != nil {
if strings.Contains(azureErr.Error(), "Code: ResourceNotFound") {
return nil, nil
}

return nil, azureErr
}

Expand Down Expand Up @@ -260,10 +256,6 @@ func GetRole(cloudserviceName, deploymentName, roleName string) (*Role, error) {
requestURL := fmt.Sprintf(azureRoleURL, cloudserviceName, deploymentName, roleName)
response, azureErr := azure.SendAzureGetRequest(requestURL)
if azureErr != nil {
if strings.Contains(azureErr.Error(), "Code: ResourceNotFound") {
return nil, nil
}

return nil, azureErr
}

Expand Down

0 comments on commit a870bf1

Please sign in to comment.