Skip to content

Commit

Permalink
Create identities for leaf (Azure#5381)
Browse files Browse the repository at this point in the history
Fixing Azure#5155, it is now possible to connect device module through edgeHub as well as creating new modules.

Test:
Connected module through edgeHub using SAS token
Created new module through edgeHub.
  • Loading branch information
huguesBouvier authored and damonbarry committed Apr 14, 2022
1 parent f64c556 commit f3a31c4
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,6 @@ public ServiceIdentityTreeNode(ServiceIdentity identity, Option<string> authChai

public void AddChild(ServiceIdentityTreeNode childNode)
{
if (!this.Identity.IsEdgeDevice)
{
throw new ArgumentException($"{this.Identity.Id} is not an Edge device, only Edge devices can have children");
}

this.children.Add(childNode);
childNode.Parent = Option.Some(this);
childNode.UpdateAuthChainFromParent(this, this.currentDepth + 1);
Expand Down

0 comments on commit f3a31c4

Please sign in to comment.