From b6b3f6a7469577d6d69bfbc7e6e8c5cb9e05aee4 Mon Sep 17 00:00:00 2001 From: ismirlia <90468712+ismirlia@users.noreply.github.com> Date: Thu, 16 Nov 2023 20:56:52 -0600 Subject: [PATCH] Remove datacenter targeting restriction (#270) --- clients/instance/ibm-pi-datacenters.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/clients/instance/ibm-pi-datacenters.go b/clients/instance/ibm-pi-datacenters.go index c1d31367..afc90ebc 100644 --- a/clients/instance/ibm-pi-datacenters.go +++ b/clients/instance/ibm-pi-datacenters.go @@ -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 { @@ -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)