mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
fix(digital-ocean): Add correct linuxDevice path to volume objects
linuxDevice consists of supposedly hardcoded 'scsi-0DO_Volume_' plus given volume name
This commit is contained in:
parent
cdc47ecdb3
commit
b3395915da
|
@ -119,7 +119,7 @@ class DigitalOceanApi extends ServerProviderApi with VolumeProviderApi {
|
|||
name: dbName,
|
||||
sizeByte: dbSize,
|
||||
serverId: null,
|
||||
linuxDevice: null,
|
||||
linuxDevice: 'scsi-0DO_Volume_$dbName',
|
||||
uuid: dbId,
|
||||
);
|
||||
} catch (e) {
|
||||
|
@ -156,7 +156,7 @@ class DigitalOceanApi extends ServerProviderApi with VolumeProviderApi {
|
|||
name: dbName,
|
||||
sizeByte: dbSize,
|
||||
serverId: dbDropletIds.isNotEmpty ? dbDropletIds[0] : null,
|
||||
linuxDevice: null,
|
||||
linuxDevice: 'scsi-0DO_Volume_$dbName',
|
||||
uuid: dbId,
|
||||
);
|
||||
volumes.add(volume);
|
||||
|
|
Loading…
Reference in a new issue