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 <aerosound161@gmail.com>
  • Loading branch information
aerosouund committed Sep 11, 2024
1 parent b5b10df commit d5c3057
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 @@ -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))
}

0 comments on commit d5c3057

Please sign in to comment.