Skip to content

Commit

Permalink
revert changes to maintenance_window_create
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsn723 committed Sep 29, 2021
1 parent 4d67414 commit de06dfa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions command/maintenance_window_create.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package main

import (
"context"
"encoding/json"
"fmt"
"os"
"strings"

"github.com/PagerDuty/go-pagerduty"
"github.com/mitchellh/cli"
log "github.com/sirupsen/logrus"
"github.com/mitchellh/cli"
"os"
"strings"
)

type MaintenanceWindowCreate struct {
Expand Down Expand Up @@ -61,7 +59,7 @@ func (c *MaintenanceWindowCreate) Run(args []string) int {
return -1
}
log.Debugf("%#v", m)
if _, err := client.CreateMaintenanceWindowWithContext(context.Background(), "", m); err != nil {
if _, err := client.CreateMaintenanceWindows(m); err != nil {
log.Error(err)
return -1
}
Expand Down

0 comments on commit de06dfa

Please sign in to comment.