Commit ab2b0a5a authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Fix fatal error when reconciling bootstrap data

Properly skip restoring bootstrap data for files that don't have a path set because the feature that would set it isn't enabled. Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 688b1805
......@@ -75,7 +75,7 @@ func WriteToDiskFromStorage(files PathsDataformat, bootstrap *config.ControlRunt
for pathKey, bsf := range files {
path, ok := paths[pathKey]
if !ok {
if !ok || path == "" {
continue
}
......
......@@ -363,7 +363,7 @@ func (c *Cluster) ReconcileBootstrapData(ctx context.Context, buf io.ReadSeeker,
for pk := range files {
p, ok := paths[pk]
if !ok {
if !ok || p == "" {
continue
}
......@@ -393,7 +393,7 @@ func (c *Cluster) ReconcileBootstrapData(ctx context.Context, buf io.ReadSeeker,
for pk := range files {
p, ok := paths[pk]
if !ok {
if !ok || p == "" {
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment