Skip to content

Commit

Permalink
WIP BROKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed May 28, 2020
1 parent 9df98a8 commit 715066e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions azuread/helpers/graph/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ func FlattenAppRoles(in *[]graphrbac.AppRole) []interface{} {
if role.IsEnabled != nil {
appRole["is_enabled"] = *role.IsEnabled
}
if role.Value != nil {
appRole["value"] = *role.Value
if v := role.Value; v != nil && *v != "" {
appRole["value"] = *v
}
appRoles = append(appRoles, appRole)
}
Expand Down
2 changes: 1 addition & 1 deletion azuread/resource_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ resource "azuread_application" "test" {
app_role {
allowed_member_types = [
"User",
"Application",
//"Application",
]
description = "Admins can manage roles and perform all task actions"
Expand Down

0 comments on commit 715066e

Please sign in to comment.