Skip to content

Commit 92736f1

Browse files
committed
issue #367 cluster
1 parent e18f813 commit 92736f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pgo/api/cluster.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func ShowCluster(httpclient *http.Client, arg, selector string, SessionCredentia
3131

3232
url := SessionCredentials.APIServerURL + "/clusters/" + arg + "?selector=" + selector + "&version=" + msgs.PGO_VERSION
3333

34-
log.Debug("show cluster called [" + url + "]")
34+
log.Debugf("show cluster called [%s]", url)
3535

3636
action := "GET"
3737
req, err := http.NewRequest(action, url, nil)
@@ -69,11 +69,11 @@ func DeleteCluster(httpclient *http.Client, arg, selector string, SessionCredent
6969

7070
var response msgs.DeleteClusterResponse
7171

72-
log.Debug("deleting cluster " + arg + " with delete-data " + strconv.FormatBool(deleteData))
72+
log.Debugf("deleting cluster %s with delete-data %s\n", arg, strconv.FormatBool(deleteData))
7373

7474
url := SessionCredentials.APIServerURL + "/clustersdelete/" + arg + "?selector=" + selector + "&delete-data=" + strconv.FormatBool(deleteData) + "&delete-backups=" + strconv.FormatBool(deleteBackups) + "&version=" + msgs.PGO_VERSION
7575

76-
log.Debug("delete cluster called [" + url + "]")
76+
log.Debugf("delete cluster called %s", url)
7777

7878
action := "GET"
7979
req, err := http.NewRequest(action, url, nil)
@@ -112,7 +112,7 @@ func CreateCluster(httpclient *http.Client, SessionCredentials *msgs.BasicAuthCr
112112

113113
jsonValue, _ := json.Marshal(request)
114114
url := SessionCredentials.APIServerURL + "/clusters"
115-
log.Debug("createCluster called...[" + url + "]")
115+
log.Debugf("createCluster called [%s]", url)
116116

117117
action := "POST"
118118
req, err := http.NewRequest(action, url, bytes.NewBuffer(jsonValue))

0 commit comments

Comments
 (0)