Skip to content

Commit

Permalink
Merge pull request #179 from PowerShell/dev
Browse files Browse the repository at this point in the history
Release of version 1.10.0.0 of xFailOverCluster
  • Loading branch information
kwirkykat authored Mar 21, 2018
2 parents 12b59c7 + ab2899f commit 4ae691b
Show file tree
Hide file tree
Showing 10 changed files with 746 additions and 22 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

## Unreleased

## 1.10.0.0

- Changes to xFailOverCluster
- Added xClusterProperty ([issue #169](https://github.com/PowerShell/xFailOverCluster/issues/169)).
- Changes to xClusterNetwork
- Fix the test for the network role never in desired state ([issue #175](https://github.com/PowerShell/xFailOverCluster/issues/175)).

## 1.9.0.0

- Changes to xFailoverCluster
- Changes to xFailOverCluster
- Update Pester syntax to v4
- Updated year to 2018 in license file and module manifest ([issue #167](https://github.com/PowerShell/xFailOverCluster/issues/167)).
- Changes to xClusterNetwork
Expand Down
16 changes: 15 additions & 1 deletion DSCResources/MSFT_xClusterNetwork/MSFT_xClusterNetwork.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,25 @@ function Get-TargetResource
$_.Address -eq $Address -and $_.AddressMask -eq $AddressMask
}

<#
On Windows Server 2008 R2 and on Windows Server 2012 R2, the property
Role is of type System.UInt32. On Windows Server 2016, the property Role
is of type Microsoft.FailoverClusters.PowerShell.ClusterNetworkRole.
#>
if ($NetworkResource.Role -is [System.UInt32])
{
$role = $NetworkResource.Role
}
else
{
$role = $NetworkResource.Role.value__
}

@{
Address = $Address
AddressMask = $AddressMask
Name = $NetworkResource.Name
Role = $NetworkResource.Role
Role = $role
Metric = $NetworkResource.Metric
}
}
Expand Down
Loading

0 comments on commit 4ae691b

Please sign in to comment.