-
Notifications
You must be signed in to change notification settings - Fork 708
Update sdk version #6497
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
Update sdk version #6497
Conversation
| } | ||
|
|
||
| if _, ok := d.GetOk("backup_recovery_endpoint"); ok { | ||
| if d.Get("backup_recovery_endpoint").(string) != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need if d.Get("backup_recovery_endpoint").(string) explict this check
if _, ok := d.GetOk("backup_recovery_endpoint"); ok it enter this block when you set "backup_recovery_endpoint" itself in config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you don't want to allow backup_recovery_endpoint empty string may be add some validation to check n't empty
| @@ -11292,6 +22217,7 @@ func dataSourceIbmBackupRecoveryProtectionSourcesRead(context context.Context, d | |||
| } | |||
| protectionSources = append(protectionSources, protectionSourcesItemMap) | |||
| } | |||
| fmt.Println("protectionSources....", protectionSources) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove all these fmt stmts
| }, | ||
| Description: "Specifies struct with basic user details.", | ||
| Elem: &schema.Resource{ | ||
| Schema: map[string]*schema.Schema{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we have such big diff here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the endpoint URL addition, there are a few changes in the schema.
The BRS backend has introduced sub nodes under the original nodes object breaking the current data source.
We have respectively added the same number of sub-nodes in the schema.
|
Add respective documentation changes |
| } | ||
|
|
||
| domain := "cloud.ibm.com" | ||
| serviceName := "backup-recovery" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add check for IAM endpoint type to decide if required to point to "test.cloud.ibm.com" when internal user targets stage env





























































Community Note
Relates OR Closes #0000
Output from acceptance testing: