Skip to content

Commit 0f702f9

Browse files
committed
Fixed profile handling in Add-SgwContainerReplicationRule
1 parent 67ffc6f commit 0f702f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StorageGRID-Webscale.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7012,7 +7012,7 @@ function Global:Add-SgwContainerReplicationRule {
70127012
}
70137013

70147014
if ($DestinationBucket) {
7015-
$DestinationUrn = Get-SgwEndpoints | Where-Object { $_.endpointURN -match ":$DestinationBucket$" } | Select-Object -ExpandProperty endpointURN -First 1
7015+
$DestinationUrn = Get-SgwEndpoints -Server $Server | Where-Object { $_.endpointURN -match ":$DestinationBucket$" } | Select-Object -ExpandProperty endpointURN -First 1
70167016
}
70177017

70187018
if (($ReplicationRules | Where-Object { $_.Id -eq $Id })) {

0 commit comments

Comments
 (0)