Skip to content

Commit

Permalink
#2163 should allowed edge device in the platform (#2177)
Browse files Browse the repository at this point in the history
* Hide certificates when getting the magic ommand

* Enable Devices and EdgeDevice in the platform

---------

Co-authored-by: Kevin BEAUGRAND <contact@kbeaugrand.fr>
Co-authored-by: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 22, 2023
1 parent 01142b5 commit 8a45502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace AzureIoTHub.Portal.Application.Mappers.AWS
{
using System.Text;
using Amazon.IoT;
using Amazon.IoT.Model;
using Amazon.IotData.Model;
using AutoMapper;
Expand Down Expand Up @@ -39,6 +40,7 @@ public AWSDeviceThingProfile()
.ForMember(dest => dest.Id, opts => opts.MapFrom(src => src.ThingId))
.ForMember(dest => dest.Name, opts => opts.MapFrom(src => src.ThingName))
.ForMember(dest => dest.Version, opts => opts.MapFrom(src => src.Version))
.ForMember(dest => dest.IsEnabled, opts => opts.MapFrom(src => true))
.ForMember(dest => dest.Tags, opts => opts.MapFrom(src => src.Attributes.Select(att => new DeviceTagValue
{
Name = att.Key,
Expand All @@ -49,6 +51,7 @@ public AWSDeviceThingProfile()
.ForMember(dest => dest.Id, opts => opts.MapFrom(src => src.ThingId))
.ForMember(dest => dest.Name, opts => opts.MapFrom(src => src.ThingName))
.ForMember(dest => dest.Version, opts => opts.MapFrom(src => src.Version))
.ForMember(dest => dest.IsEnabled, opts => opts.MapFrom(src => true))
.ForMember(dest => dest.Tags, opts => opts.MapFrom(src => src.Attributes.Select(att => new DeviceTagValue
{
Name = att.Key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ private async Task CreateOrUpdateEdgeDevice(EdgeDevice edgeDevice)
{
this.deviceTagValueRepository.Delete(deviceTagEntity.Id);
}

_ = this.mapper.Map(edgeDevice, edgeDeviceEntity);
this.edgeDeviceRepository.Update(edgeDeviceEntity);
}
Expand Down

0 comments on commit 8a45502

Please sign in to comment.