From 56e780e26a04c6fb62f09ff6240f3cd52b835ca8 Mon Sep 17 00:00:00 2001 From: aerosouund Date: Fri, 30 Aug 2024 13:14:17 +0300 Subject: [PATCH] refactor: Remove the perform phase method Signed-off-by: aerosouund --- cluster-provision/gocli/cmd/provision.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cluster-provision/gocli/cmd/provision.go b/cluster-provision/gocli/cmd/provision.go index 64ec548b4e..7321f98ca7 100644 --- a/cluster-provision/gocli/cmd/provision.go +++ b/cluster-provision/gocli/cmd/provision.go @@ -379,14 +379,3 @@ func _cmd(cli *client.Client, container string, cmd string, description string) } return nil } - -func performPhase(cli *client.Client, container string, script string, envVars string) error { - err := _cmd(cli, container, fmt.Sprintf("test -f %s", script), "checking provision scripts") - if err != nil { - return err - } - - return _cmd(cli, container, - fmt.Sprintf("ssh.sh sudo %s /bin/bash < %s", envVars, script), - fmt.Sprintf("provisioning the node (%s)", script)) -}