Skip to content

Commit 1f53212

Browse files
committed
fix role configuration deserialization
1 parent da403df commit 1f53212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/Model/DeploymentInfoContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public DeploymentInfoContext(DeploymentGetResponse deployment)
255255

256256
this.RolesConfiguration = new Dictionary<string, RoleConfiguration>();
257257

258-
var roles = doc.Root.Descendants(this.ns + "Role");
258+
var roles = doc.Root.Descendants(this.ns + "Role").Where(t => t.Parent == doc.Root);
259259

260260
foreach (var role in roles)
261261
{

0 commit comments

Comments
 (0)