Merge pull request #231 from crawford/netconf

metadata: don't fail if no network config was provided
This commit is contained in:
Alex Crawford 2014-09-12 16:35:24 -07:00
commit db1bc51c98

View File

@ -163,7 +163,7 @@ func main() {
os.Exit(1) os.Exit(1)
} }
if ccm != nil { if ccm != nil && ccm.NetworkConfigPath != "" {
fmt.Printf("Fetching network config from datasource of type %q\n", ds.Type()) fmt.Printf("Fetching network config from datasource of type %q\n", ds.Type())
netconfBytes, err := ds.FetchNetworkConfig(ccm.NetworkConfigPath) netconfBytes, err := ds.FetchNetworkConfig(ccm.NetworkConfigPath)
if err != nil { if err != nil {