Skip to content

Commit 96a74aa

Browse files
author
Youri
committed
fix one issue
1 parent 1cab99d commit 96a74aa

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/Network/Network/PrivateLinkService/PrivateEndpointConnection/GetAzurePrivateEndpointConnection.cs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,17 @@ public override void Execute()
6666
this.Subscription = DefaultProfile.DefaultContext.Subscription.Id;
6767
this.PrivateLinkResourceType = DynamicParameters["PrivateLinkResourceType"].Value as string;
6868

69-
IPrivateLinkProvider provider = BuildProvider(this.Subscription, this.PrivateLinkResourceType);
70-
if (ShouldGetByName(this.ResourceGroupName, this.Name))
71-
{
72-
var pec = provider.GetPrivateEndpointConnection(this.ResourceGroupName, this.ServiceName, this.Name);
73-
WriteObject(pec);
74-
}
75-
else
76-
{
77-
var pecs = provider.ListPrivateEndpointConnections(this.ResourceGroupName, this.ServiceName);
78-
WriteObject(SubResourceWildcardFilter(Name, pecs), true);
69+
IPrivateLinkProvider provider = BuildProvider(this.Subscription, this.PrivateLinkResourceType);
70+
if (ShouldGetByName(this.ResourceGroupName, this.Name))
71+
{
72+
var pec = provider.GetPrivateEndpointConnection(this.ResourceGroupName, this.ServiceName, this.Name);
73+
WriteObject(pec);
74+
}
75+
else
76+
{
77+
var pecs = provider.ListPrivateEndpointConnections(this.ResourceGroupName, this.ServiceName);
78+
WriteObject(SubResourceWildcardFilter(Name, pecs), true);
79+
}
7980
}
8081
}
8182
}

0 commit comments

Comments
 (0)