-
Notifications
You must be signed in to change notification settings - Fork 673
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
File share Mount target resource rename #4604
Conversation
|
|
return diag.FromErr(err) | ||
} | ||
|
||
d.SetId(fmt.Sprintf("%s/%s", *createShareMountTargetOptions.ShareID, *shareTarget.ID)) |
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 we setID before waitingfor available. If soemtimes waiting intermittely the state file will hold ID and helps in future run
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.
moved above wait logic call
log.Printf("[DEBUG] GetShareMountTargetWithContext failed %s\n%s", err, response) | ||
return diag.FromErr(err) | ||
} | ||
|
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 we check shareTarget != nil and then access *shareTarget.X for eliminating nil pointer exception .
or Add in above
if err != nil || shareTarget = nil{
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.
added shareTarget == nil check
adding a fix. moving to draft till then |
Fix added and tested. PR is ready to review and merge |
* Deprecated share target and added share mount target resources and data sources * added maturity * updated beta sdk version and removed custom sdk * updated read methods * pr review comments fix * fix for concurrent target create and delete issue
Deprecated ibm_is_share_target resource and datasources
Added ibm_is_share_mount_target