@@ -543,6 +543,7 @@ def get_resource_criteria_list(datasource_type, restore_configuration, container
543543 raise RequiredArgumentMissingError ("Please input parameter restore_configuration for AKS cluster restore.\n \
544544 Use command initialize-restoreconfig for creating the RestoreConfiguration" )
545545 restore_criteria_list .append (restore_criteria )
546+ return restore_criteria_list
546547 else :
547548 # For non-AKS workloads (blobs (non-vaulted)), we need either a prefix-pattern or a container-list. Accordingly, the restore
548549 # criteria's min_matching_value and max_matching_value are set. We need to provide one, but can't provide both
@@ -559,14 +560,14 @@ def get_resource_criteria_list(datasource_type, restore_configuration, container
559560 raise RequiredArgumentMissingError ("Provide ContainersList or Prefixes for Item Level Recovery" )
560561
561562 # Process based on the provided parameter type
562- if container_list_present :
563- return _process_container_list (container_list , recovery_point_id )
563+ if container_list_present :
564+ return _process_container_list (container_list , recovery_point_id )
564565
565- if prefix_pattern_present :
566- return _process_prefix_pattern (from_prefix_pattern , to_prefix_pattern )
566+ if prefix_pattern_present :
567+ return _process_prefix_pattern (from_prefix_pattern , to_prefix_pattern )
567568
568- if vaulted_pattern_present :
569- return _process_vaulted_blob_pattern (vaulted_blob_prefix_pattern )
569+ if vaulted_pattern_present :
570+ return _process_vaulted_blob_pattern (vaulted_blob_prefix_pattern )
570571
571572 # This should never be reached due to the validation above, but included for completeness
572573 return []
0 commit comments