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;
|
||||
|
||||
for (const deviceID of $scope.state.deviceIDs) {
|
||||
let deviceName = $scope.formValues.DeviceName + suffix;
|
||||
|
||||
try {
|
||||
var endpoint = await EndpointService.createRemoteEndpoint(
|
||||
$scope.formValues.DeviceName + suffix,
|
||||
deviceName,
|
||||
PortainerEndpointCreationTypes.EdgeAgentEnvironment,
|
||||
$scope.formValues.PortainerURL,
|
||||
'',
|
||||
|
@ -102,7 +104,7 @@ angular
|
|||
const config = {
|
||||
edgeID: endpoint.EdgeID || uuidv4(),
|
||||
edgeKey: endpoint.EdgeKey,
|
||||
name: $scope.formValues.DeviceName,
|
||||
name: deviceName,
|
||||
profile: $scope.formValues.DeviceProfile,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue