Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/azurerm: Create azure App Service Plan resource #13634

Closed
Prev Previous commit
Next Next commit
updated logging messages
leostolyarov committed May 11, 2017

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 233f5d577dd1503a1631941b15dd576f71ffc5aa
6 changes: 3 additions & 3 deletions builtin/providers/azurerm/resource_arm_app_service_plan.go
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ func resourceArmAppServicePlanCreateUpdate(d *schema.ResourceData, meta interfac
client := meta.(*ArmClient)
AppServicePlanClient := client.appServicePlansClient

log.Printf("[INFO] preparing arguments for Azure ARM Server Farm creation.")
log.Printf("[INFO] preparing arguments for Azure App Service Plan creation.")

resGroup := d.Get("resource_group_name").(string)
name := d.Get("name").(string)
@@ -78,7 +78,7 @@ func resourceArmAppServicePlanCreateUpdate(d *schema.ResourceData, meta interfac
return err
}
if read.ID == nil {
return fmt.Errorf("Cannot read Server farm %s (resource group %s) ID", name, resGroup)
return fmt.Errorf("Cannot read Azure App Service Plan %s (resource group %s) ID", name, resGroup)
}

d.SetId(*read.ID)
@@ -105,7 +105,7 @@ func resourceArmAppServicePlanRead(d *schema.ResourceData, meta interface{}) err
d.SetId("")
return nil
}
return fmt.Errorf("Error making Read request on Azure Server Farm %s: %s", name, err)
return fmt.Errorf("Error making Read request on Azure App Service Plan %s: %s", name, err)
}

d.Set("name", name)