@@ -501,7 +501,7 @@ pub fn validate_config(config: &Configuration, progress_format: ProgressFormat)
501501 . as_str ( )
502502 . map ( |r| ResourceVersionReq :: parse ( r) )
503503 . transpose ( ) ?;
504- resource_types. push ( DiscoveryFilter :: new_for_resource ( type_name, require_version, None ) ) ;
504+ resource_types. push ( DiscoveryFilter :: new ( type_name, require_version, None ) ) ;
505505 }
506506 dsc. find_resources ( & resource_types, progress_format) ?;
507507
@@ -559,22 +559,22 @@ pub fn resource(subcommand: &ResourceSubCommand, progress_format: ProgressFormat
559559 list_resources ( & mut dsc, resource_name, adapter_name. as_ref ( ) , description. as_ref ( ) , tags. as_ref ( ) , output_format. as_ref ( ) , progress_format) ;
560560 } ,
561561 ResourceSubCommand :: Schema { resource , version, output_format } => {
562- if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new_for_resource ( resource, version. clone ( ) , None ) ] , progress_format) {
562+ if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new ( resource, version. clone ( ) , None ) ] , progress_format) {
563563 error ! ( "{}: {err}" , t!( "subcommand.failedDiscoverResource" ) ) ;
564564 exit ( EXIT_DSC_ERROR ) ;
565565 }
566566 resource_command:: schema ( & mut dsc, resource, version. as_ref ( ) , output_format. as_ref ( ) ) ;
567567 } ,
568568 ResourceSubCommand :: Export { resource, version, input, file, output_format } => {
569- if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new_for_resource ( resource, version. clone ( ) , None ) ] , progress_format) {
569+ if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new ( resource, version. clone ( ) , None ) ] , progress_format) {
570570 error ! ( "{}: {err}" , t!( "subcommand.failedDiscoverResource" ) ) ;
571571 exit ( EXIT_DSC_ERROR ) ;
572572 }
573573 let parsed_input = get_input ( input. as_ref ( ) , file. as_ref ( ) ) ;
574574 resource_command:: export ( & mut dsc, resource, version. as_ref ( ) , & parsed_input, output_format. as_ref ( ) ) ;
575575 } ,
576576 ResourceSubCommand :: Get { resource, version, input, file : path, all, output_format } => {
577- if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new_for_resource ( resource, version. clone ( ) , None ) ] , progress_format) {
577+ if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new ( resource, version. clone ( ) , None ) ] , progress_format) {
578578 error ! ( "{}: {err}" , t!( "subcommand.failedDiscoverResource" ) ) ;
579579 exit ( EXIT_DSC_ERROR ) ;
580580 }
@@ -591,23 +591,23 @@ pub fn resource(subcommand: &ResourceSubCommand, progress_format: ProgressFormat
591591 }
592592 } ,
593593 ResourceSubCommand :: Set { resource, version, input, file : path, output_format, what_if } => {
594- if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new_for_resource ( resource, version. clone ( ) , None ) ] , progress_format) {
594+ if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new ( resource, version. clone ( ) , None ) ] , progress_format) {
595595 error ! ( "{}: {err}" , t!( "subcommand.failedDiscoverResource" ) ) ;
596596 exit ( EXIT_DSC_ERROR ) ;
597597 }
598598 let parsed_input = get_input ( input. as_ref ( ) , path. as_ref ( ) ) ;
599599 resource_command:: set ( & mut dsc, resource, version. as_ref ( ) , & parsed_input, output_format. as_ref ( ) , * what_if) ;
600600 } ,
601601 ResourceSubCommand :: Test { resource, version, input, file : path, output_format } => {
602- if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new_for_resource ( resource, version. clone ( ) , None ) ] , progress_format) {
602+ if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new ( resource, version. clone ( ) , None ) ] , progress_format) {
603603 error ! ( "{}: {err}" , t!( "subcommand.failedDiscoverResource" ) ) ;
604604 exit ( EXIT_DSC_ERROR ) ;
605605 }
606606 let parsed_input = get_input ( input. as_ref ( ) , path. as_ref ( ) ) ;
607607 resource_command:: test ( & mut dsc, resource, version. as_ref ( ) , & parsed_input, output_format. as_ref ( ) ) ;
608608 } ,
609609 ResourceSubCommand :: Delete { resource, version, input, file : path, output_format, what_if } => {
610- if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new_for_resource ( resource, version. clone ( ) , None ) ] , progress_format) {
610+ if let Err ( err) = dsc. find_resources ( & [ DiscoveryFilter :: new ( resource, version. clone ( ) , None ) ] , progress_format) {
611611 error ! ( "{}: {err}" , t!( "subcommand.failedDiscoverResource" ) ) ;
612612 exit ( EXIT_DSC_ERROR ) ;
613613 }
0 commit comments