helper/schema: Return error on invalid timeout type
This commit is contained in:
parent
186a6dcc38
commit
2fe3f16cb3
|
@ -110,7 +110,8 @@ func (t *ResourceTimeout) ConfigDecode(s *Resource, c *terraform.ResourceConfig)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Printf("[WARN] Invalid Timeout structure found, skipping timeouts")
|
log.Printf("[ERROR] Invalid timeout structure: %T", raw)
|
||||||
|
return fmt.Errorf("Invalid Timeout structure found")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue