diff --git a/lib/ansible/modules/windows/win_defrag.ps1 b/lib/ansible/modules/windows/win_defrag.ps1 index e8df46b044..d272d7f11c 100644 --- a/lib/ansible/modules/windows/win_defrag.ps1 +++ b/lib/ansible/modules/windows/win_defrag.ps1 @@ -1,6 +1,6 @@ #!powershell # -*- coding: utf-8 -*- -# + # Copyright: (c) 2017, Dag Wieers (@dagwieers) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) @@ -63,7 +63,7 @@ namespace Ansible.Command { } '@ -$util_type = Add-Type -TypeDefinition $util_def +Add-Type -TypeDefinition $util_def $arguments = "" diff --git a/test/sanity/pslint/ignore.txt b/test/sanity/pslint/ignore.txt index f1548cf3fe..2ab44822ff 100644 --- a/test/sanity/pslint/ignore.txt +++ b/test/sanity/pslint/ignore.txt @@ -22,7 +22,6 @@ lib/ansible/modules/windows/win_chocolatey.ps1 PSUseDeclaredVarsMoreThanAssignme lib/ansible/modules/windows/win_chocolatey.ps1 PSUseOutputTypeCorrectly lib/ansible/modules/windows/win_copy.ps1 PSUseApprovedVerbs lib/ansible/modules/windows/win_copy.ps1 PSUseDeclaredVarsMoreThanAssignments -lib/ansible/modules/windows/win_defrag.ps1 PSUseDeclaredVarsMoreThanAssignments lib/ansible/modules/windows/win_dns_client.ps1 PSAvoidGlobalVars lib/ansible/modules/windows/win_dns_client.ps1 PSAvoidUsingCmdletAliases lib/ansible/modules/windows/win_dns_client.ps1 PSAvoidUsingWMICmdlet