Skip to content

Commit

Permalink
refactor: Remove the perform phase method
Browse files Browse the repository at this point in the history
Signed-off-by: aerosouund <[email protected]>
  • Loading branch information
aerosouund committed Aug 30, 2024
1 parent 058c6ec commit 64ba83e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cluster-provision/gocli/cmd/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,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))
}

0 comments on commit 64ba83e

Please sign in to comment.