Skip to content

Commit f117a00

Browse files
cormacpayneshahabhijeet
authored andcommitted
Fix piping issue with Get-AzureRmDnsZone (#4213)
1 parent ad9ef17 commit f117a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResourceManager/Dns/Commands.Dns/Zones/GetAzureDnsZone.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public override void ExecuteCmdlet()
4747
}
4848
else if (!string.IsNullOrEmpty(this.ResourceGroupName))
4949
{
50-
WriteObject(this.DnsClient.ListDnsZonesInResourceGroup(this.ResourceGroupName));
50+
WriteObject(this.DnsClient.ListDnsZonesInResourceGroup(this.ResourceGroupName), true);
5151
}
5252
else
5353
{
54-
WriteObject(this.DnsClient.ListDnsZonesInSubscription());
54+
WriteObject(this.DnsClient.ListDnsZonesInSubscription(), true);
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)