Get-Nameserver fix

This commit is contained in:
2022-12-17 01:37:50 +03:00
parent 4c128f5864
commit bad183aff4
2 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ public class Nameserver {
) { ) {
this.Id = id; this.Id = id;
this.Name = name; this.Name = name;
this.NameServers = nameServers.Split(new char[] {';'}); this.NameServers = nameServers.Split(new char[] {';'});
this.Description = description; this.Description = description;
this.Permissions = permissions; this.Permissions = permissions;
this.EditDate = editDate; this.EditDate = editDate;

View File

@@ -1,8 +1,8 @@
function Get-Nameserver { function Get-Nameserver {
[CmdletBinding(DefaultParameterSetName="ByID")] [CmdletBinding(DefaultParameterSetName="NoParams")]
param ( param (
[parameter( [parameter(
Mandatory=$false, Mandatory=$true,
ValueFromPipeline=$true, ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$true, ValueFromPipelineByPropertyName=$true,
Position=0, Position=0,