diff options
Diffstat (limited to 'lib/ansible/modules/windows/win_partition.ps1')
-rw-r--r-- | lib/ansible/modules/windows/win_partition.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/windows/win_partition.ps1 b/lib/ansible/modules/windows/win_partition.ps1 index 0b47674d89..3295c8e16c 100644 --- a/lib/ansible/modules/windows/win_partition.ps1 +++ b/lib/ansible/modules/windows/win_partition.ps1 @@ -219,10 +219,10 @@ if ($ansible_partition) { } else { - if ($null -ne $gpt_type -and $gpt_styles.$gpt_type -ne $partition.GptType) { + if ($null -ne $gpt_type -and $gpt_styles.$gpt_type -ne $ansible_partition.GptType) { $module.FailJson("gpt_type is not a valid parameter for existing partitions") } - if ($null -ne $mbr_type -and $mbr_styles.$mbr_type -ne $partition.MbrType) { + if ($null -ne $mbr_type -and $mbr_styles.$mbr_type -ne $ansible_partition.MbrType) { $module.FailJson("mbr_type is not a valid parameter for existing partitions") } |