mirror of https://github.com/portainer/portainer
fix(fdo): add suffix to the device name supplied to /fdo/configure EE-2469 (#6505)
parent
a8d3cda3fa
commit
fe082f762f
|
@ -74,9 +74,11 @@ angular
|
||||||
let suffix = $scope.formValues.Suffix;
|
let suffix = $scope.formValues.Suffix;
|
||||||
|
|
||||||
for (const deviceID of $scope.state.deviceIDs) {
|
for (const deviceID of $scope.state.deviceIDs) {
|
||||||
|
let deviceName = $scope.formValues.DeviceName + suffix;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var endpoint = await EndpointService.createRemoteEndpoint(
|
var endpoint = await EndpointService.createRemoteEndpoint(
|
||||||
$scope.formValues.DeviceName + suffix,
|
deviceName,
|
||||||
PortainerEndpointCreationTypes.EdgeAgentEnvironment,
|
PortainerEndpointCreationTypes.EdgeAgentEnvironment,
|
||||||
$scope.formValues.PortainerURL,
|
$scope.formValues.PortainerURL,
|
||||||
'',
|
'',
|
||||||
|
@ -102,7 +104,7 @@ angular
|
||||||
const config = {
|
const config = {
|
||||||
edgeID: endpoint.EdgeID || uuidv4(),
|
edgeID: endpoint.EdgeID || uuidv4(),
|
||||||
edgeKey: endpoint.EdgeKey,
|
edgeKey: endpoint.EdgeKey,
|
||||||
name: $scope.formValues.DeviceName,
|
name: deviceName,
|
||||||
profile: $scope.formValues.DeviceProfile,
|
profile: $scope.formValues.DeviceProfile,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue