Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions internal/services/cloud/cloud_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,14 +561,6 @@ func ReinstallInstance(cmd *cobra.Command, args []string) {
return
}

out, err := json.MarshalIndent(parameters, "", " ")
if err != nil {
display.OutputError(&flags.OutputFormatConfig, "installation parameters cannot be marshalled: %s", err)
return
}

log.Println("Installation parameters: \n" + string(out))

var task map[string]any
endpoint := fmt.Sprintf("/v1/cloud/project/%s/instance/%s/reinstall", projectID, url.PathEscape(args[0]))
if err := httpLib.Client.Post(endpoint, parameters, &task); err != nil {
Expand Down
8 changes: 0 additions & 8 deletions internal/services/cloud/cloud_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,6 @@ func CreateUserS3Policy(cmd *cobra.Command, args []string) {
return
}

out, err := json.MarshalIndent(parameters, "", " ")
if err != nil {
display.OutputError(&flags.OutputFormatConfig, "parameters cannot be marshalled: %s", err)
return
}

log.Println("Final parameters: \n" + string(out))

endpoint := fmt.Sprintf("/v1/cloud/project/%s/user/%s/policy", projectID, url.PathEscape(args[0]))
if err := httpLib.Client.Post(endpoint, parameters, nil); err != nil {
display.OutputError(&flags.OutputFormatConfig, "error creating resource: %s", err)
Expand Down
7 changes: 0 additions & 7 deletions internal/services/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,6 @@ func CreateResource(cmd *cobra.Command, path, endpoint, defaultExample string,
}
}

out, err := json.MarshalIndent(parameters, "", " ")
if err != nil {
return nil, fmt.Errorf("parameters cannot be marshalled: %w", err)
}

log.Println("Final parameters: \n" + string(out))

var createdResource map[string]any
if err := httpLib.Client.Post(endpoint, parameters, &createdResource); err != nil {
return nil, fmt.Errorf("error creating resource: %w", err)
Expand Down
Loading