Skip to content

Commit

Permalink
Sync bitbucket and GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
carchi8py committed Jul 15, 2021
1 parent 0ec4ad7 commit afbe66f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cloudmanager/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,15 +549,14 @@ func updateCVOSVMPassword(d *schema.ResourceData, meta interface{}) error {
client.ClientID = d.Get("client_id").(string)
var request setPasswordRequest
request.Password = d.Get("svm_password").(string)
log.Print("Update svm_password: ", request.Password)
// Update password
id := d.Id()
baseURL := fmt.Sprintf("/working-environments/%s/set-password", id)
updateErr := client.callCMUpdateAPI("PUT", request, baseURL, id, "updateCVOSVMPassword")
if updateErr != nil {
return updateErr
}
log.Printf("Updated %s svm_password: %v", id, request.Password)
log.Printf("Updated %s svm_password", id)
return nil
}

Expand Down

0 comments on commit afbe66f

Please sign in to comment.