Skip to content

Commit

Permalink
Add custom flattens for passwords (#1230)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and Ty Larrabee committed Oct 8, 2019
1 parent 88fec38 commit 9829eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google-beta/resource_security_scanner_scan_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ func flattenSecurityScannerScanConfigAuthenticationGoogleAccountUsername(v inter
}

func flattenSecurityScannerScanConfigAuthenticationGoogleAccountPassword(v interface{}, d *schema.ResourceData) interface{} {
return v
return d.Get("authentication.0.custom_account.0.password")
}

func flattenSecurityScannerScanConfigAuthenticationCustomAccount(v interface{}, d *schema.ResourceData) interface{} {
Expand All @@ -559,7 +559,7 @@ func flattenSecurityScannerScanConfigAuthenticationCustomAccountUsername(v inter
}

func flattenSecurityScannerScanConfigAuthenticationCustomAccountPassword(v interface{}, d *schema.ResourceData) interface{} {
return v
return d.Get("authentication.0.google_account.0.password")
}

func flattenSecurityScannerScanConfigAuthenticationCustomAccountLoginUrl(v interface{}, d *schema.ResourceData) interface{} {
Expand Down

0 comments on commit 9829eed

Please sign in to comment.