Skip to content

Commit

Permalink
return fatal if no network found
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Oct 27, 2019
1 parent 5e3b94a commit f65b0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/model/openstackmodel/context.go
Expand Up @@ -84,7 +84,7 @@ func (c *OpenstackModelContext) findSubnetNameByID(subnetID string, subnetName s
func (c *OpenstackModelContext) LinkToNetwork() *openstacktasks.Network {
netName, err := c.GetNetworkName()
if err != nil {
klog.Infof("Could not find networkname")
klog.Fatalf("Could not find networkname")
return nil
}
return &openstacktasks.Network{Name: s(netName)}
Expand Down

0 comments on commit f65b0f3

Please sign in to comment.