Skip to content

Commit

Permalink
Merge pull request moby#1071 from aboch/obl
Browse files Browse the repository at this point in the history
Have resources initialized before deleting overlay network
  • Loading branch information
mrjana committed Apr 4, 2016
2 parents 36acee5 + 003ef62 commit 362e780
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/overlay/ov_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ func (d *driver) DeleteNetwork(nid string) error {
return fmt.Errorf("invalid network id")
}

// Make sure driver resources are initialized before proceeding
if err := d.configure(); err != nil {
return err
}

n := d.network(nid)
if n == nil {
return fmt.Errorf("could not find network with id %s", nid)
Expand Down

0 comments on commit 362e780

Please sign in to comment.