Compare commits

2 Commits

Author SHA1 Message Date
ced1dde708 Merge branch 'main' of https://git.arnike.ru/Arnike/ps.ipam 2022-12-17 01:37:51 +03:00
bad183aff4 Get-Nameserver fix 2022-12-17 01:37:50 +03:00
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,