Commit c1e77579 authored by Yann Kaiser's avatar Yann Kaiser

Fixed a pointer check in data_source_host

parent cd8c4e5e
......@@ -50,7 +50,7 @@ func dataSourceHostRead(d *schema.ResourceData, m interface{}) error {
request.SpecificName = &name
}
if *request.SpecificName == "" {
if request.SpecificName != nil && *request.SpecificName == "" {
return fmt.Errorf("No host name was specified")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment