Skip to content

Commit

Permalink
Merge pull request #46 from surajsub/master
Browse files Browse the repository at this point in the history
Updated the Clone Volumes Client
  • Loading branch information
surajsub authored Jul 9, 2020
2 parents 8e98708 + f4743f6 commit f1f0c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/instance/ibm-pi-clonevolumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ func NewIBMPICloneVolumeClient(sess *ibmpisession.IBMPISession, powerinstanceid
}

//Create a clone volume
func (f *IBMPICloneVolumeClient) Create(id, powerinstanceid string, timeout time.Duration) (*models.VolumesCloneResponse, error) {
func (f *IBMPICloneVolumeClient) Create(clone_params *p_cloud_volumes.PcloudVolumesClonePostParams, id, powerinstanceid string, timeout time.Duration) (*models.VolumesCloneResponse, error) {

log.Printf("Calling the CloneVolume Create Method..")
log.Printf("The input clone name is %s and to the cloudinstance id %s", id, powerinstanceid)
params := p_cloud_volumes.NewPcloudVolumesClonePostParamsWithTimeout(f.session.Timeout).WithCloudInstanceID(powerinstanceid)
params := p_cloud_volumes.NewPcloudVolumesClonePostParamsWithTimeout(f.session.Timeout).WithCloudInstanceID(powerinstanceid).WithBody(clone_params.Body)

resp, err := f.session.Power.PCloudVolumes.PcloudVolumesClonePost(params, ibmpisession.NewAuth(f.session, powerinstanceid))

Expand Down

0 comments on commit f1f0c38

Please sign in to comment.