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

Added keys to output for cog service account #2825

Merged
merged 16 commits into from
Feb 4, 2019
Merged
Prev Previous commit
Next Next commit
wrapped up error when failed to get keys
Co-Authored-By: JimPaine <jim@jimpaine.io>
  • Loading branch information
katbyte and JimPaine authored Feb 1, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 43c8191a4a85cdabc2bc5a81f2fb9c30dd16d7e6
2 changes: 1 addition & 1 deletion azurerm/resource_arm_cognitive_account.go
Original file line number Diff line number Diff line change
@@ -238,7 +238,7 @@ func resourceArmCognitiveAccountRead(d *schema.ResourceData, meta interface{}) e
d.SetId("")
return nil
}
return err
return fmt.Errorf("Error obtaining keys for Cognitive Services Account %q in Resource Group %q: %v", name, resourceGroup, err)
}

d.Set("key1", keys.Key1)