We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28edca2 + e9a450d commit 5e42017Copy full SHA for 5e42017
pkg/drivers/kvm/network.go
@@ -117,9 +117,11 @@ func (d *Driver) createNetwork() error {
117
118
// network: default
119
// It is assumed that the libvirt/kvm installation has already created this network
120
+ if _, err := conn.LookupNetworkByName(d.Network); err != nil {
121
+ return errors.Wrapf(err, "network %s doesn't exist", d.Network)
122
+ }
123
124
// network: private
-
125
// Only create the private network if it does not already exist
126
if _, err := conn.LookupNetworkByName(d.PrivateNetwork); err != nil {
127
// create the XML for the private network from our networkTmpl
0 commit comments