Skip to content

Commit

Permalink
Removing the AzureKeyCredential wrapper for storage keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pablocastro committed Mar 13, 2023
1 parent 2d66629 commit 86c6e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prepdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
default_creds = DefaultAzureCredential() if args.searchkey == None or args.storagekey == None else None
search_creds = default_creds if args.searchkey == None else AzureKeyCredential(args.searchkey)
if not args.skipblobs:
storage_creds = default_creds if args.storagekey == None else AzureKeyCredential(args.storagekey)
storage_creds = default_creds if args.storagekey == None else args.storagekey

def blob_name_from_file_page(filename, page):
return os.path.splitext(os.path.basename(filename))[0] + f"-{page}" + ".pdf"
Expand Down

0 comments on commit 86c6e39

Please sign in to comment.