Skip to content

Commit 097350b

Browse files
authoredSep 18, 2024··
Merge pull request #552 from SteveL-MSFT/importer
Rename `Import` kind to `Importer`
2 parents 6b57f6f + 81afa2e commit 097350b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎dsc/include.dsc.resource.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "Microsoft.DSC/Include",
44
"version": "0.1.0",
55
"description": "Allows including a configuration file with optional parameter file.",
6-
"kind": "Import",
6+
"kind": "Importer",
77
"get": {
88
"executable": "dsc",
99
"args": [

‎dsc_lib/src/dscresources/command_resource.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ pub fn invoke_test(resource: &ResourceManifest, cwd: &str, expected: &str) -> Re
267267
verify_json(resource, cwd, &stdout)?;
268268
}
269269

270-
if resource.kind == Some(Kind::Import) {
270+
if resource.kind == Some(Kind::Importer) {
271271
debug!("Import resource kind, returning group test response");
272272
let group_test_response: Vec<ResourceTestResult> = serde_json::from_str(&stdout)?;
273273
return Ok(TestResult::Group(group_test_response));

‎dsc_lib/src/dscresources/resource_manifest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::dscerror::DscError;
1313
pub enum Kind {
1414
Adapter,
1515
Group,
16-
Import,
16+
Importer,
1717
Resource,
1818
}
1919

0 commit comments

Comments
 (0)
Please sign in to comment.