Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit db1bc51

Browse files
author
Alex Crawford
committed
Merge pull request #231 from crawford/netconf
metadata: don't fail if no network config was provided
2 parents db49a16 + c1f373e commit db1bc51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coreos-cloudinit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func main() {
163163
os.Exit(1)
164164
}
165165

166-
if ccm != nil {
166+
if ccm != nil && ccm.NetworkConfigPath != "" {
167167
fmt.Printf("Fetching network config from datasource of type %q\n", ds.Type())
168168
netconfBytes, err := ds.FetchNetworkConfig(ccm.NetworkConfigPath)
169169
if err != nil {

0 commit comments

Comments
 (0)