@@ -44,10 +44,6 @@ func (f *IBMPIVolumeClient) GetAll() (*models.Volumes, error) {
44
44
params := p_cloud_volumes .NewPcloudCloudinstancesVolumesGetallParams ().
45
45
WithContext (f .ctx ).WithTimeout (helpers .PIGetTimeOut ).
46
46
WithCloudInstanceID (f .cloudInstanceID )
47
- // Check for satellite differences in this endpoint
48
- if f .session .IsOnPrem () && (params .Auxiliary != nil && params .ReplicationEnabled != nil ) {
49
- return nil , fmt .Errorf ("auxiliary and replication enabled parameters are not supported in satellite location, check documentation" )
50
- }
51
47
resp , err := f .session .Power .PCloudVolumes .PcloudCloudinstancesVolumesGetall (params , f .session .AuthInfo (f .cloudInstanceID ))
52
48
if err != nil {
53
49
return nil , fmt .Errorf ("failed to Get all Volumes for Cloud Instance %s: %w" , f .cloudInstanceID , err )
@@ -75,10 +71,6 @@ func (f *IBMPIVolumeClient) GetAllAffinityVolumes(affinity string) (*models.Volu
75
71
76
72
// Create a VolumeV2
77
73
func (f * IBMPIVolumeClient ) CreateVolumeV2 (body * models.MultiVolumesCreate ) (* models.Volumes , error ) {
78
- // Check for satellite differences in this endpoint
79
- if f .session .IsOnPrem () && body .ReplicationEnabled != nil {
80
- return nil , fmt .Errorf ("replication enabled parameter is not supported in satellite location, check documentation" )
81
- }
82
74
params := p_cloud_volumes .NewPcloudV2VolumesPostParams ().
83
75
WithContext (f .ctx ).WithTimeout (helpers .PICreateTimeOut ).
84
76
WithCloudInstanceID (f .cloudInstanceID ).WithBody (body )
@@ -94,10 +86,6 @@ func (f *IBMPIVolumeClient) CreateVolumeV2(body *models.MultiVolumesCreate) (*mo
94
86
95
87
// Create a Volume
96
88
func (f * IBMPIVolumeClient ) CreateVolume (body * models.CreateDataVolume ) (* models.Volume , error ) {
97
- // Check for satellite differences in this endpoint
98
- if f .session .IsOnPrem () && body .ReplicationEnabled != nil {
99
- return nil , fmt .Errorf ("replication enabled parameter is not supported in satellite location, check documentation" )
100
- }
101
89
params := p_cloud_volumes .NewPcloudCloudinstancesVolumesPostParams ().
102
90
WithContext (f .ctx ).WithTimeout (helpers .PICreateTimeOut ).
103
91
WithCloudInstanceID (f .cloudInstanceID ).WithBody (body )
@@ -227,10 +215,6 @@ func (f *IBMPIVolumeClient) UpdateVolumeAttach(id, volumeID string, body *models
227
215
228
216
// Performs action on volume
229
217
func (f * IBMPIVolumeClient ) VolumeAction (id string , body * models.VolumeAction ) error {
230
- // Check for satellite differences in this endpoint
231
- if f .session .IsOnPrem () && body .ReplicationEnabled != nil {
232
- return fmt .Errorf ("replication enabled parameter is not supported in satellite location, check documentation" )
233
- }
234
218
params := p_cloud_volumes .NewPcloudCloudinstancesVolumesActionPostParams ().
235
219
WithContext (f .ctx ).WithTimeout (helpers .PIUpdateTimeOut ).
236
220
WithCloudInstanceID (f .cloudInstanceID ).WithVolumeID (id ).WithBody (body )
0 commit comments