Skip to content

Commit 27afe35

Browse files
committed
fix: references to global_config in puterfs
1 parent ea3dbcd commit 27afe35

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

extensions/puterfs/main.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ class PuterFSProvider {
526526
const uid = uuidv4();
527527

528528
// determine bucket region
529-
let bucket_region = config.s3_region ?? config.region;
530-
let bucket = config.s3_bucket;
529+
let bucket_region = global_config.s3_region ?? global_config.region;
530+
let bucket = global_config.s3_bucket;
531531

532532
if ( ! await svc_acl.check(actor, parent, 'write') ) {
533533
throw await svc_acl.get_safe_acl_error(actor, parent, 'write');
@@ -645,6 +645,7 @@ class PuterFSProvider {
645645

646646
const bucket_region = node.entry.bucket_region;
647647
const bucket = node.entry.bucket;
648+
console.log('BUCKET AND ENTRY?', bucket, node.entry);
648649

649650
const state_upload = await this.#storage_upload({
650651
uuid: node.entry.uuid,
@@ -733,8 +734,8 @@ class PuterFSProvider {
733734
}) {
734735
const storage = svc_mountpoint.get_storage(this.constructor.name);
735736

736-
bucket ??= config.s3_bucket;
737-
bucket_region ??= config.s3_region ?? config.region;
737+
bucket ??= global_config.s3_bucket;
738+
bucket_region ??= global_config.s3_region ?? global_config.region;
738739

739740
let upload_tracker = new UploadProgressTracker();
740741

0 commit comments

Comments
 (0)