Skip to content

Commit

Permalink
Remove datacenter targeting restriction (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismirlia authored Nov 17, 2023
1 parent 7d173b8 commit b6b3f6a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions clients/instance/ibm-pi-datacenters.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ func NewIBMPIDatacenterClient(ctx context.Context, sess *ibmpisession.IBMPISessi
}
}
func (f *IBMPIDatacentersClient) Get(datacenterRegion string) (*models.Datacenter, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := datacenters.NewV1DatacentersGetParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithDatacenterRegion(datacenterRegion)
resp, err := f.session.Power.Datacenters.V1DatacentersGet(params)
if err != nil {
Expand All @@ -38,9 +35,6 @@ func (f *IBMPIDatacentersClient) Get(datacenterRegion string) (*models.Datacente
}

func (f *IBMPIDatacentersClient) GetAll() (*models.Datacenters, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := datacenters.NewV1DatacentersGetallParams().WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut)
resp, err := f.session.Power.Datacenters.V1DatacentersGetall(params)

Expand Down

0 comments on commit b6b3f6a

Please sign in to comment.