diff --git a/parallel_change_blob_access_tier.py b/parallel_change_blob_access_tier.py index ea69103..60f7036 100644 --- a/parallel_change_blob_access_tier.py +++ b/parallel_change_blob_access_tier.py @@ -32,7 +32,7 @@ execute_changes = True force_tier_on_inferred_blobs = False use_threads = False verify_existence = False -verify_access_tier = False +verify_access_tier = True n_threads = 100 n_print = 5000 @@ -193,7 +193,7 @@ def set_access_tier(container_client, blob_path, access_tier): container_client.set_standard_blob_tier_blobs(access_tier,blob_path) # Verify that we've started rehydrating - if check_archive_rehydration and (original_tier != 'Archive'): + if check_archive_rehydration and (original_tier == 'Archive'): archive_status = properties['archive_status'] if 'rehydrate-pending' not in archive_status: print('Error: blob {} not re-hydrating'.format(blob_path)) @@ -398,4 +398,4 @@ if __name__ == '__main__': assert args.access_tier in valid_tiers, 'Invalid access tier: {}, valid values are Hot, Cool, Archive (case-sensitive)'.format(args.access_tier) container_client = get_container_client(args.account_name,args.container_name,args.sas_token_file) parallel_set_access_tier(container_client,args.input_file,args.access_tier) - \ No newline at end of file +