Skip to content

Commit c9c4359

Browse files
authored
Merge pull request #1014 from SteveL-MSFT/missing-binary
Change missing binary to `info` instead of `warn`
2 parents 0e7ddb9 + 7a3565a commit c9c4359

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dsc/tests/dsc_discovery.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ Describe 'tests for resource discovery' {
209209
try {
210210
$env:DSC_RESOURCE_PATH = $testdrive
211211
Set-Content -Path "$testdrive/test.dsc.resource.json" -Value $manifest
212-
$out = dsc resource list 'Test/ExecutableNotFound' 2> "$testdrive/error.txt" | ConvertFrom-Json
212+
$out = dsc -l info resource list 'Test/ExecutableNotFound' 2> "$testdrive/error.txt" | ConvertFrom-Json
213213
$LASTEXITCODE | Should -Be 0
214214
$out.Count | Should -Be 1
215215
$out.Type | Should -BeExactly 'Test/ExecutableNotFound'
216216
$out.Kind | Should -BeExactly 'resource'
217-
Get-Content -Path "$testdrive/error.txt" | Should -Match "WARN.*?Executable 'doesNotExist' not found"
217+
(Get-Content -Path "$testdrive/error.txt" -Raw) | Should -Match "INFO.*?Executable 'doesNotExist' not found"
218218
}
219219
finally {
220220
$env:DSC_RESOURCE_PATH = $oldPath

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ fn load_extension_manifest(path: &Path, manifest: &ExtensionManifest) -> Result<
756756

757757
fn verify_executable(resource: &str, operation: &str, executable: &str) {
758758
if which(executable).is_err() {
759-
warn!("{}", t!("discovery.commandDiscovery.executableNotFound", resource = resource, operation = operation, executable = executable));
759+
info!("{}", t!("discovery.commandDiscovery.executableNotFound", resource = resource, operation = operation, executable = executable));
760760
}
761761
}
762762

0 commit comments

Comments
 (0)