Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 290a37d

Browse files
New-DbaAgentJobStep: bugfix Write-Message
Correct `Write-Message foo -Warning` to `Write-Message foo -Level Warning`
1 parent d8d9d27 commit 290a37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎functions/New-DbaAgentJobStep.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Create a step in "Job1" with the name Step1 where the database will the "msdb" f
194194

195195
# Check if the job exists
196196
if ($Server.JobServer.Jobs.Name -notcontains $j) {
197-
Write-Message -Message "Job $j doesn't exists on $instance" -Warning
197+
Write-Message -Message "Job $j doesn't exists on $instance" -Level Warning
198198
}
199199
else {
200200
# Create the job step object

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /