bfg-common 1.2.117 → 1.2.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,26 +50,19 @@ export const constructDiskDevicesFunc = (
50
50
  // TODO refactoring
51
51
  let result:
52
52
  any = {
53
- size: hardDisk.size ?? 0,
54
- source: hardDisk.source ?? '',
55
- storage_id: hardDisk.storage_id ?? '',
53
+ create: true,
54
+ size: hardDisk.size,
55
+ bus: hardDisk.bus || '',
56
+ storage_id: hardDisk.storage?.id || '',
57
+ provision_type: hardDisk.provision_type || '',
58
+ disk_mode: hardDisk.disk_mode || '',
59
+ boot_order: hardDisk.boot_order || 0,
56
60
  device_type: hardDisk.device_type ?? '',
57
- bus: hardDisk.bus ?? '',
58
- target: hardDisk.target ?? '',
59
- boot_order: hardDisk.boot_order ?? 0,
60
- provision_type: hardDisk.provision_type ?? '',
61
- disk_mode: hardDisk.disk_mode ?? '',
62
61
  sharing: hardDisk.sharing ?? false,
63
- read_only: hardDisk.read_only ?? false,
64
62
  shares: hardDisk.shares ?? 0,
65
63
  cache: hardDisk.cache ?? '',
66
64
  io: hardDisk.io ?? '',
67
65
  limit_iops: hardDisk.limit_iops ?? 0,
68
- discard: hardDisk.discard ?? '',
69
- attach: hardDisk.attach ?? false,
70
- detach: hardDisk.detach ?? false,
71
- remove: hardDisk.remove ?? false,
72
- create: hardDisk.create ?? true,
73
66
  }
74
67
  if (!hardDisk.create) {
75
68
  // result = {
@@ -95,17 +88,11 @@ export const constructDiskDevicesFunc = (
95
88
  provision_type: hardDisk.provision_type || '',
96
89
  disk_mode: hardDisk.disk_mode || '',
97
90
  boot_order: hardDisk.boot_order || 0,
98
- target: hardDisk.target ?? '',
99
91
  sharing: hardDisk.sharing ?? false,
100
- read_only: hardDisk.read_only ?? false,
101
92
  shares: hardDisk.shares ?? 0,
102
93
  cache: hardDisk.cache ?? '',
103
94
  io: hardDisk.io ?? '',
104
95
  limit_iops: hardDisk.limit_iops ?? 0,
105
- discard: hardDisk.discard ?? '',
106
- attach: hardDisk.attach ?? false,
107
- detach: hardDisk.detach ?? false,
108
- remove: hardDisk.remove ?? false,
109
96
  }
110
97
  }
111
98
  return result
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.2.117",
4
+ "version": "1.2.118",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",