Skip to content

Commit 1202002

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix use of filtering on type
1 parent 18c9254 commit 1202002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl ResourceDiscovery for CommandDiscovery {
143143
},
144144
};
145145

146-
if regex.is_match(filter) {
146+
if regex.is_match(&resource.type_name) {
147147
if let Some(ref manifest) = resource.manifest {
148148
let manifest = import_manifest(manifest.clone())?;
149149
if manifest.kind == Some(Kind::Adapter) {

0 commit comments

Comments
 (0)