Skip to content

Commit

Permalink
updated the tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
surajsub authored and surajibm committed Jun 30, 2020
1 parent a5d14d9 commit bc10068
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/instance/ibm-pi-tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ func NewIBMPITenantClient(sess *ibmpisession.IBMPISession, powerinstanceid strin
}
}

func (f *IBMPITenantClient) Get(powerinstanceid string) (*models.Tenant, error) {
func (f *IBMPITenantClient) Get(tenantid string) (*models.Tenant, error) {

params := p_cloud_tenants.NewPcloudTenantsGetParams().WithTenantID(f.session.UserAccount)
resp, err := f.session.Power.PCloudTenants.PcloudTenantsGet(params, ibmpisession.NewAuth(f.session, powerinstanceid))
params := p_cloud_tenants.NewPcloudTenantsGetParams().WithTenantID(f.session.UserAccount).WithTenantID(tenantid)
resp, err := f.session.Power.PCloudTenants.PcloudTenantsGet(params, ibmpisession.NewAuth(f.session, tenantid))

if err != nil || resp.Payload == nil {
log.Printf("Failed to perform the operation... %v", err)
Expand Down

0 comments on commit bc10068

Please sign in to comment.