Skip to content

Commit 642d018

Browse files
committed
iterate on backend
1 parent 6fd3684 commit 642d018

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyter_drives/manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async def list_drives(self):
210210
for drive in self._external_drives:
211211
try:
212212
data.append({
213-
"name": drive['url'],
213+
"name": drive['name'],
214214
"region": self._config.region_name,
215215
"creationDate": datetime.now().isoformat(timespec='milliseconds').replace('+00:00', 'Z'),
216216
"mounted": False if result.name not in self._content_managers else True,
@@ -642,16 +642,16 @@ async def new_drive(self, new_drive_name, location='us-east-1'):
642642

643643
return
644644

645-
async def add_public_drive(self, drive_url):
645+
async def add_public_drive(self, drive_name):
646646
"""Mount a drive.
647647
648648
Args:
649-
drive_url: public URL of bucket to mount
649+
drive_name: name of public bucket to mount
650650
"""
651651
try:
652652
drive = {
653653
"is_public": True,
654-
"url": drive_url
654+
"name": drive_name
655655
};
656656
self._external_drives.append(drive);
657657
except Exception as e:

0 commit comments

Comments
 (0)