Skip to content

Commit

Permalink
readInterface return if interfaceNC
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremmfr committed Dec 18, 2019
1 parent 46791d8 commit 38135ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions junos/resource_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,12 @@ func resourceInterfaceRead(d *schema.ResourceData, m interface{}) error {
}
if !intExists {
d.SetId("")
mutex.Unlock()
return nil
}
if err = checkInterfaceNC(d.Get("name").(string), m, jnprSess); err == nil {
d.SetId("")
mutex.Unlock()
return nil
}
interfaceOpt, err := readInterface(d.Get("name").(string), m, jnprSess)
Expand Down

0 comments on commit 38135ab

Please sign in to comment.