Skip to content

Commit b14d85b

Browse files
committed
Use the proper format for command arguments
Signed-off-by: David Cassany <dcassany@suse.com> (cherry picked from commit 6853d36)
1 parent 42deff8 commit b14d85b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

controllers/machineselector_controller.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,10 @@ func (r *MachineInventorySelectorReconciler) newBootstrapPlan(ctx context.Contex
466466
},
467467
{
468468
CommonInstruction: applyinator.CommonInstruction{
469-
Command: "bash -c '[ -f /var/lib/rancher/bootstrap_done ] || /var/lib/rancher/bootstrap.sh && touch /var/lib/rancher/bootstrap_done'",
469+
Command: "bash",
470+
Args: []string{
471+
"-c", "[ -f /var/lib/rancher/bootstrap_done ] || /var/lib/rancher/bootstrap.sh && touch /var/lib/rancher/bootstrap_done",
472+
},
470473
},
471474
},
472475
},

0 commit comments

Comments
 (0)