ansible-collections / community.windows

Windows community collection for Ansible
https://galaxy.ansible.com/community/windows
GNU General Public License v3.0
206 stars 160 forks source link

Fix issue #265. Support for Windows Failover Cluster #543

Closed xcom1710 closed 12 months ago

xcom1710 commented 1 year ago
SUMMARY

Fix issue #265. Support for Windows Failover Cluster

ISSUE TYPE
COMPONENT NAME

win_format.ps1 win_partition.ps1

ADDITIONAL INFORMATION

On systems with an active failover cluster Get-Partitions and Get-Volumes show entries from all nodes in that cluster. To solve the problem the code filters out all partitions and volumes without a disk number. AFAIK only a local disk will ever have a disk number. Tested with Windows Server 2022.

jborean93 commented 12 months ago

Thanks for working on this!