Skip to content

Commit 09485a0

Browse files
committed
fix: better info message; fix gs constructor
1 parent 66b501b commit 09485a0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pins/boards.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ def pin_write(
274274
# move pin to destination ----
275275
# create pin version folder
276276
dst_pin_path = self.construct_path([pin_name])
277-
dst_version_path = self.path_to_deploy_version(name, meta.version.version)
277+
dst_version = meta.version.version
278+
dst_version_path = self.path_to_deploy_version(name, dst_version)
278279

279280
if not self.fs.exists(dst_pin_path):
280281
# equivalent to mkdirp, want to fail quietly in case of race conditions
@@ -294,7 +295,9 @@ def pin_write(
294295
"but that directory already exists."
295296
)
296297

297-
inform(_log, f"Writing to pin {repr(pin_name)}")
298+
inform(
299+
_log, f"Writing pin:\nName: {repr(pin_name)}\nVersion: {dst_version}"
300+
)
298301

299302
res = self.fs.put(tmp_dir, dst_version_path, recursive=True)
300303

pins/constructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,4 @@ def board_gcs(path, versioned=True, cache=DEFAULT, allow_pickle_read=None):
371371
Passed to the pins.board function.
372372
"""
373373

374-
return board("s3", path, versioned, cache, allow_pickle_read)
374+
return board("gs", path, versioned, cache, allow_pickle_read)

0 commit comments

Comments
 (0)