Skip to content

Commit 10a2f88

Browse files
committed
Powershell: remove duplicate function
Wirte-Log is already defined in BOSH.Utils which is a dependency of BOSH.WinRM where the duplicate function is (again) defined.
1 parent b2ad70e commit 10a2f88

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

modules/BOSH.WinRM/BOSH.WinRM.psm1

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,3 @@ function runCmd {
5454
Write-Log "Error running: $arg"
5555
}
5656
}
57-
58-
function Write-Log {
59-
Param (
60-
[Parameter(Mandatory=$True,Position=1)][string]$Message,
61-
[string]$LogFile="C:\provision\log.log"
62-
)
63-
64-
$LogDir = (split-path $LogFile -parent)
65-
If ((Test-Path $LogDir) -ne $True) {
66-
New-Item -Path $LogDir -ItemType Directory -Force
67-
}
68-
69-
$msg = "{0} {1}" -f (Get-Date -Format o), $Message
70-
Add-Content -Path $LogFile -Value $msg -Encoding 'UTF8'
71-
Write-Host $msg
72-
}
73-

0 commit comments

Comments
 (0)