Merge branch 'main' into dracut-asset-tag-urlencode
This commit is contained in:
@@ -71,7 +71,7 @@ type Transformer struct{}
|
||||
func (t Transformer) Transformer(typ reflect.Type) func(dst, src reflect.Value) error {
|
||||
if typ == reflect.TypeOf(net.IP{}) {
|
||||
return func(dst, src reflect.Value) error {
|
||||
if !src.IsValid() || !src.CanSet() {
|
||||
if !src.IsValid() || src.IsZero() {
|
||||
return nil
|
||||
}
|
||||
dst.Set(src)
|
||||
|
||||
@@ -935,11 +935,14 @@ nodeprofiles:
|
||||
nodes:
|
||||
n1:
|
||||
profiles:
|
||||
- p1`,
|
||||
node: "n1",
|
||||
field: "NetDevs[default].Netmask",
|
||||
source: "p1",
|
||||
value: "255.255.255.0",
|
||||
- p1
|
||||
network devices:
|
||||
default:
|
||||
ipaddr: 192.168.1.1`,
|
||||
nodes: []string{"n1", "n1"},
|
||||
fields: []string{"NetDevs[default].Netmask", "NetDevs[default].Ipaddr"},
|
||||
sources: []string{"p1", ""},
|
||||
values: []string{"255.255.255.0", "192.168.1.1"},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ func BuildSpecificOverlays(nodes []node.Node, allNodes []node.Node, overlayNames
|
||||
var wg sync.WaitGroup
|
||||
worker := func() {
|
||||
for n := range nodeChan {
|
||||
wwlog.Info("Building overlay for %s: %v", n, overlayNames)
|
||||
wwlog.Info("Building overlay for %s: %v", n.Id(), overlayNames)
|
||||
for _, overlayName := range overlayNames {
|
||||
err := BuildOverlay(n, allNodes, "", []string{overlayName})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user