ansible-collections / community.windows

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

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

Closed xcom1710 closed 7 months ago

xcom1710 commented 7 months 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 7 months ago

Thanks for working on this!