Skip to content

Commit

Permalink
contract check validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di committed Jan 27, 2025
1 parent 23fd70c commit 3ef56a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/namespaces/applesilicon/v1alpha1/custom_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ func serverCreateBuilder(c *core.Command) *core.Command {
req := &account.ContractAPICheckContractSignatureRequest{
OrganizationID: orgaID,
ContractType: "BAREMETAL",
ContractName: "Specific Conditions Services Baremetal",
}
contractInfo, err := contractAPI.CheckContractSignature(req)
print(contractInfo)
bareMetalLink := "\u001B[38;2;121;45;212;4m\u001B]8;;https://console.scaleway.com/organization/contracts\u001B\\Bare Metal Specific Conditions\u001B]8;;\u001B\\\u001B[0m (\u001B[38;2;121;45;212mhttps://console.scaleway.com/organization/contracts\u001B[0m)"
appleLink := "\u001B[4m\u001B[38;2;121;45;212m\u001B]8;;https://www.apple.com/legal/sla/\u001B\\macOS License Agreement\u001B]8;;\u001B\\\u001B[0m (https://www.apple.com/legal/sla/)"
if contractInfo.Validated {
if contractInfo != nil && contractInfo.Validated {
fmt.Println("Please note: Signing the " + appleLink + " is mandatory.")
} else {
fmt.Println("Please note: Signing the " + bareMetalLink + " and the " + appleLink + " is mandatory.")
Expand Down

0 comments on commit 3ef56a9

Please sign in to comment.