Skip to content

Commit

Permalink
fixing possible logic error in subnet data source
Browse files Browse the repository at this point in the history
  • Loading branch information
stobias123 committed Jan 6, 2020
1 parent 0dd8169 commit d4040c5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions data_source_subnet.go
Expand Up @@ -92,11 +92,6 @@ func dataSourceSubnetRead(d *schema.ResourceData, meta interface{}) error {
s = client.GetSubnet(subnetName)
}

subnetVlan := d.Get("vlan").(string)
if len(subnetVlan) < 1 {
s = client.GetSubnetByVLAN(subnetVlan)
}

if len(s.DisplayName) < 0 {
log.Fatal("No subnets matching that name found.")
}
Expand Down

0 comments on commit d4040c5

Please sign in to comment.