From c1f373e648e1d8950faef668b5a70968db2408a3 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Fri, 12 Sep 2014 16:29:27 -0700 Subject: [PATCH] metadata: don't fail if no network config was provided --- coreos-cloudinit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreos-cloudinit.go b/coreos-cloudinit.go index aeae7fb..3da63b9 100644 --- a/coreos-cloudinit.go +++ b/coreos-cloudinit.go @@ -163,7 +163,7 @@ func main() { os.Exit(1) } - if ccm != nil { + if ccm != nil && ccm.NetworkConfigPath != "" { fmt.Printf("Fetching network config from datasource of type %q\n", ds.Type()) netconfBytes, err := ds.FetchNetworkConfig(ccm.NetworkConfigPath) if err != nil {