Skip to content

Commit

Permalink
Merge pull request #552 from SteveL-MSFT/importer
Browse files Browse the repository at this point in the history
Rename `Import` kind to `Importer`
  • Loading branch information
SteveL-MSFT authored Sep 18, 2024
2 parents 6b57f6f + 81afa2e commit 097350b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dsc/include.dsc.resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "Microsoft.DSC/Include",
"version": "0.1.0",
"description": "Allows including a configuration file with optional parameter file.",
"kind": "Import",
"kind": "Importer",
"get": {
"executable": "dsc",
"args": [
Expand Down
2 changes: 1 addition & 1 deletion dsc_lib/src/dscresources/command_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pub fn invoke_test(resource: &ResourceManifest, cwd: &str, expected: &str) -> Re
verify_json(resource, cwd, &stdout)?;
}

if resource.kind == Some(Kind::Import) {
if resource.kind == Some(Kind::Importer) {
debug!("Import resource kind, returning group test response");
let group_test_response: Vec<ResourceTestResult> = serde_json::from_str(&stdout)?;
return Ok(TestResult::Group(group_test_response));
Expand Down
2 changes: 1 addition & 1 deletion dsc_lib/src/dscresources/resource_manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::dscerror::DscError;
pub enum Kind {
Adapter,
Group,
Import,
Importer,
Resource,
}

Expand Down

0 comments on commit 097350b

Please sign in to comment.