@@ -169,7 +169,7 @@ impl Default for CommandDiscovery {
169
169
170
170
impl ResourceDiscovery for CommandDiscovery {
171
171
172
- fn discover_resources ( & mut self , filter : & str ) -> Result < ( ) , DscError > {
172
+ fn discover_resources ( & mut self , filter : & str , progress_format : ProgressFormat ) -> Result < ( ) , DscError > {
173
173
info ! ( "{}" , t!( "discovery.commandDiscovery.discoverResources" , filter = filter) ) ;
174
174
175
175
let regex_str = convert_wildcard_to_regex ( filter) ;
@@ -246,7 +246,7 @@ impl ResourceDiscovery for CommandDiscovery {
246
246
247
247
fn discover_adapted_resources ( & mut self , name_filter : & str , adapter_filter : & str ) -> Result < ( ) , DscError > {
248
248
if self . resources . is_empty ( ) && self . adapters . is_empty ( ) {
249
- self . discover_resources ( "*" ) ?;
249
+ self . discover_resources ( "*" , progress_format ) ?;
250
250
}
251
251
252
252
if self . adapters . is_empty ( ) {
@@ -358,7 +358,7 @@ impl ResourceDiscovery for CommandDiscovery {
358
358
let mut resources = BTreeMap :: < String , Vec < DscResource > > :: new ( ) ;
359
359
360
360
if adapter_name_filter. is_empty ( ) {
361
- self . discover_resources ( type_name_filter) ?;
361
+ self . discover_resources ( type_name_filter, progress_format ) ?;
362
362
resources. append ( & mut self . resources ) ;
363
363
resources. append ( & mut self . adapters ) ;
364
364
} else {
@@ -379,7 +379,7 @@ impl ResourceDiscovery for CommandDiscovery {
379
379
fn find_resources ( & mut self , required_resource_types : & [ String ] ) -> Result < BTreeMap < String , DscResource > , DscError >
380
380
{
381
381
debug ! ( "Searching for resources: {:?}" , required_resource_types) ;
382
- self . discover_resources ( "*" ) ?;
382
+ self . discover_resources ( "*" , progress_format ) ?;
383
383
384
384
// convert required_resource_types to lowercase to handle case-insentiive search
385
385
let mut remaining_required_resource_types = required_resource_types. iter ( ) . map ( |x| x. to_lowercase ( ) ) . collect :: < Vec < String > > ( ) ;
0 commit comments