From fdc0e5c5fb8a55e12937a197cbdcc2f8cbd60442 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 22 Mar 2018 00:06:42 +0100 Subject: [PATCH] win_defrag: Fix pslint issues (#37719) --- lib/ansible/modules/windows/win_defrag.ps1 | 4 ++-- test/sanity/pslint/ignore.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/windows/win_defrag.ps1 b/lib/ansible/modules/windows/win_defrag.ps1 index e8df46b044d..d272d7f11cb 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 f1548cf3fe4..2ab44822ff2 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