-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix(global): nil resources #486
fix(global): nil resources #486
Conversation
Signed-off-by: dn <[email protected]>
Fix for empty resources, like having an |
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.
Thank you for the PR. This check should be centralized in the isEmpty
function. Can you post an example of the resource you are having problems with?
Sure - here's a snippet:
|
routeros/mikrotik_serialize.go
Outdated
@@ -230,6 +230,11 @@ func TerraformResourceDataToMikrotik(s map[string]*schema.Schema, d *schema.Reso | |||
|
|||
case *schema.Resource: | |||
|
|||
// skip if object is empty | |||
if value.([]interface{})[0] == nil { | |||
break |
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.
Please change the loop statement to continue
🎉 This PR is included in version 1.54.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.