fog-proxmox 0.15.1 → 0.15.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/fog/proxmox/auth/token/access_ticket.rb +2 -2
- data/lib/fog/proxmox/helpers/disk_helper.rb +8 -8
- data/lib/fog/proxmox/helpers/nic_helper.rb +1 -1
- data/lib/fog/proxmox/identity/models/group.rb +1 -1
- data/lib/fog/proxmox/identity/models/token.rb +1 -1
- data/lib/fog/proxmox/identity/models/user.rb +1 -1
- data/lib/fog/proxmox/string.rb +2 -2
- data/lib/fog/proxmox/version.rb +1 -1
- data/spec/fixtures/proxmox/compute/snapshots.yml +35 -35
- data/spec/helpers/disk_helper_spec.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76ca5dd7645b67a287e1f668a536de1fcf180f4d363ba2472e03ad33fc1a5194
|
4
|
+
data.tar.gz: 551e55a53ce2c316be4134f45251539209e90b6a87ad207653b17754653cfebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7263bb9be5064c515fa658f284afbd696251dde07e2b74d86d61c3f367c19f3b3894b3ff2392fa275f258e5c4b5b640a66808d7c59405038d16c560424eb72a1
|
7
|
+
data.tar.gz: b6a10b77669b5782e2ec2d8e4ab8a7ea6bcdd7a6af10abf8a271008f3db9f896e4dad07506d570d022a817a5ce9f908b8c05f9b17634809cffd9e1b872780683
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.15.2](https://github.com/fog/fog-proxmox/compare/v0.15.1...v0.15.2) (2025-08-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Miscellaneous Chores
|
7
|
+
|
8
|
+
* release 0.15.2 ([#116](https://github.com/fog/fog-proxmox/issues/116)) ([d460740](https://github.com/fog/fog-proxmox/commit/d46074059cc48e0951109850904b8bc6a030da81))
|
9
|
+
|
3
10
|
## [0.15.1](https://github.com/fog/fog-proxmox/compare/v0.15.0...v0.15.1) (2025-02-25)
|
4
11
|
|
5
12
|
|
@@ -48,11 +48,11 @@ module Fog
|
|
48
48
|
def auth_body(params = {})
|
49
49
|
raise URIError, 'URI params is required' if params.nil? || params.empty?
|
50
50
|
|
51
|
-
if params[:proxmox_username].nil? || params[:proxmox_username].empty?
|
51
|
+
if params[:proxmox_username].nil? || params[:proxmox_username].to_s.strip.empty?
|
52
52
|
raise URIError,
|
53
53
|
'proxmox_username is required'
|
54
54
|
end
|
55
|
-
if params[:proxmox_password].nil? || params[:proxmox_password].empty?
|
55
|
+
if params[:proxmox_password].nil? || params[:proxmox_password].to_s.strip.empty?
|
56
56
|
raise URIError,
|
57
57
|
'proxmox_password is required'
|
58
58
|
end
|
@@ -136,28 +136,28 @@ module Fog
|
|
136
136
|
|
137
137
|
def self.extract_size(disk_value)
|
138
138
|
size = extract_option('size', disk_value)
|
139
|
-
size = to_int_gb(to_bytes(size)).to_s if size
|
139
|
+
size = to_int_gb(to_bytes(size)).to_s if size&.match?(/\d+(G)/)
|
140
140
|
size
|
141
141
|
end
|
142
142
|
|
143
143
|
def self.disk?(id)
|
144
|
-
DISKS_REGEXP.match(id)
|
144
|
+
DISKS_REGEXP.match(id) || false
|
145
145
|
end
|
146
146
|
|
147
147
|
def self.cdrom?(value)
|
148
|
-
CDROM_REGEXP.match(value)
|
148
|
+
CDROM_REGEXP.match(value) || false
|
149
149
|
end
|
150
150
|
|
151
151
|
def self.server_disk?(id)
|
152
|
-
SERVER_DISK_REGEXP.match(id)
|
152
|
+
SERVER_DISK_REGEXP.match(id) || false
|
153
153
|
end
|
154
154
|
|
155
155
|
def self.rootfs?(id)
|
156
|
-
ROOTFS_REGEXP.match(id)
|
156
|
+
ROOTFS_REGEXP.match(id) || false
|
157
157
|
end
|
158
158
|
|
159
159
|
def self.mount_point?(id)
|
160
|
-
MOUNT_POINT_REGEXP.match(id)
|
160
|
+
MOUNT_POINT_REGEXP.match(id) || false
|
161
161
|
end
|
162
162
|
|
163
163
|
def self.container_disk?(id)
|
@@ -165,11 +165,11 @@ module Fog
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def self.template?(volid)
|
168
|
-
TEMPLATE_REGEXP.match(volid)
|
168
|
+
TEMPLATE_REGEXP.match(volid) || false
|
169
169
|
end
|
170
170
|
|
171
171
|
def self.cloud_init?(volid)
|
172
|
-
CLOUD_INIT_REGEXP.match(volid)
|
172
|
+
CLOUD_INIT_REGEXP.match(volid) || false
|
173
173
|
end
|
174
174
|
|
175
175
|
def self.of_type?(disk_h, vm_type)
|
@@ -28,7 +28,7 @@ module Fog
|
|
28
28
|
attribute :members
|
29
29
|
|
30
30
|
def save(options = {})
|
31
|
-
service.create_group(
|
31
|
+
service.create_group(attributes.reject { |attribute| %i[users members].include? attribute }.merge(options))
|
32
32
|
reload
|
33
33
|
end
|
34
34
|
|
@@ -42,7 +42,7 @@ module Fog
|
|
42
42
|
|
43
43
|
def save(options = {})
|
44
44
|
requires :tokenid, :userid
|
45
|
-
token_hash =
|
45
|
+
token_hash = attributes.reject { |attribute| %i[userid tokenid info].include? attribute }.merge(options)
|
46
46
|
service.create_token(userid, tokenid, token_hash)
|
47
47
|
reload
|
48
48
|
end
|
@@ -45,7 +45,7 @@ module Fog
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def save(options = {})
|
48
|
-
service.create_user(
|
48
|
+
service.create_user(attributes.reject { |attribute| [:tokens].include? attribute }.merge(options))
|
49
49
|
reload
|
50
50
|
end
|
51
51
|
|
data/lib/fog/proxmox/string.rb
CHANGED
@@ -22,8 +22,8 @@ module Fog
|
|
22
22
|
# module String mixins
|
23
23
|
module String
|
24
24
|
def self.to_boolean(text)
|
25
|
-
return true if text == true || text =~
|
26
|
-
return false if text == false || text.empty? || text =~
|
25
|
+
return true if text == true || text =~ /(true|t|yes|y|1)$/i
|
26
|
+
return false if text == false || text.empty? || text =~ /(false|f|no|n|0)$/i
|
27
27
|
|
28
28
|
raise ArgumentError, "invalid value for Boolean: \"#{text}\""
|
29
29
|
end
|
data/lib/fog/proxmox/version.rb
CHANGED
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Wed, 10 May 2023 11:52:43 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://
|
42
|
+
uri: https://192.168.56.101:8006/api2/json/nodes
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -76,7 +76,7 @@ http_interactions:
|
|
76
76
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
77
77
|
- request:
|
78
78
|
method: get
|
79
|
-
uri: https://
|
79
|
+
uri: https://192.168.56.101:8006/api2/json/cluster/nextid
|
80
80
|
body:
|
81
81
|
encoding: US-ASCII
|
82
82
|
string: ''
|
@@ -113,7 +113,7 @@ http_interactions:
|
|
113
113
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
114
114
|
- request:
|
115
115
|
method: get
|
116
|
-
uri: https://
|
116
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks
|
117
117
|
body:
|
118
118
|
encoding: US-ASCII
|
119
119
|
string: ''
|
@@ -155,7 +155,7 @@ http_interactions:
|
|
155
155
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
156
156
|
- request:
|
157
157
|
method: get
|
158
|
-
uri: https://
|
158
|
+
uri: https://192.168.56.101:8006/api2/json/cluster/nextid?vmid=101
|
159
159
|
body:
|
160
160
|
encoding: US-ASCII
|
161
161
|
string: ''
|
@@ -192,7 +192,7 @@ http_interactions:
|
|
192
192
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
193
193
|
- request:
|
194
194
|
method: post
|
195
|
-
uri: https://
|
195
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu
|
196
196
|
body:
|
197
197
|
encoding: US-ASCII
|
198
198
|
string: vmid=101
|
@@ -231,7 +231,7 @@ http_interactions:
|
|
231
231
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
232
232
|
- request:
|
233
233
|
method: get
|
234
|
-
uri: https://
|
234
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE0:0022900B:645CE78E:qmcreate:101:root@pam:/status
|
235
235
|
body:
|
236
236
|
encoding: US-ASCII
|
237
237
|
string: ''
|
@@ -268,7 +268,7 @@ http_interactions:
|
|
268
268
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
269
269
|
- request:
|
270
270
|
method: get
|
271
|
-
uri: https://
|
271
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE0:0022900B:645CE78E:qmcreate:101:root@pam:/log
|
272
272
|
body:
|
273
273
|
encoding: US-ASCII
|
274
274
|
string: ''
|
@@ -305,7 +305,7 @@ http_interactions:
|
|
305
305
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
306
306
|
- request:
|
307
307
|
method: get
|
308
|
-
uri: https://
|
308
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE0:0022900B:645CE78E:qmcreate:101:root@pam:/status
|
309
309
|
body:
|
310
310
|
encoding: US-ASCII
|
311
311
|
string: ''
|
@@ -342,7 +342,7 @@ http_interactions:
|
|
342
342
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
343
343
|
- request:
|
344
344
|
method: get
|
345
|
-
uri: https://
|
345
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE0:0022900B:645CE78E:qmcreate:101:root@pam:/log
|
346
346
|
body:
|
347
347
|
encoding: US-ASCII
|
348
348
|
string: ''
|
@@ -379,7 +379,7 @@ http_interactions:
|
|
379
379
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
380
380
|
- request:
|
381
381
|
method: get
|
382
|
-
uri: https://
|
382
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/status/current
|
383
383
|
body:
|
384
384
|
encoding: US-ASCII
|
385
385
|
string: ''
|
@@ -417,7 +417,7 @@ http_interactions:
|
|
417
417
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
418
418
|
- request:
|
419
419
|
method: get
|
420
|
-
uri: https://
|
420
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/config
|
421
421
|
body:
|
422
422
|
encoding: US-ASCII
|
423
423
|
string: ''
|
@@ -455,7 +455,7 @@ http_interactions:
|
|
455
455
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
456
456
|
- request:
|
457
457
|
method: get
|
458
|
-
uri: https://
|
458
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks
|
459
459
|
body:
|
460
460
|
encoding: US-ASCII
|
461
461
|
string: ''
|
@@ -497,7 +497,7 @@ http_interactions:
|
|
497
497
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
498
498
|
- request:
|
499
499
|
method: get
|
500
|
-
uri: https://
|
500
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/status/current
|
501
501
|
body:
|
502
502
|
encoding: US-ASCII
|
503
503
|
string: ''
|
@@ -535,7 +535,7 @@ http_interactions:
|
|
535
535
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
536
536
|
- request:
|
537
537
|
method: get
|
538
|
-
uri: https://
|
538
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/config
|
539
539
|
body:
|
540
540
|
encoding: US-ASCII
|
541
541
|
string: ''
|
@@ -573,7 +573,7 @@ http_interactions:
|
|
573
573
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
574
574
|
- request:
|
575
575
|
method: get
|
576
|
-
uri: https://
|
576
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks
|
577
577
|
body:
|
578
578
|
encoding: US-ASCII
|
579
579
|
string: ''
|
@@ -615,7 +615,7 @@ http_interactions:
|
|
615
615
|
recorded_at: Thu, 11 May 2023 13:03:10 GMT
|
616
616
|
- request:
|
617
617
|
method: get
|
618
|
-
uri: https://
|
618
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks
|
619
619
|
body:
|
620
620
|
encoding: US-ASCII
|
621
621
|
string: ''
|
@@ -657,7 +657,7 @@ http_interactions:
|
|
657
657
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
658
658
|
- request:
|
659
659
|
method: post
|
660
|
-
uri: https://
|
660
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/snapshot
|
661
661
|
body:
|
662
662
|
encoding: US-ASCII
|
663
663
|
string: snapname=snapshot1&vmstate=0
|
@@ -696,7 +696,7 @@ http_interactions:
|
|
696
696
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
697
697
|
- request:
|
698
698
|
method: get
|
699
|
-
uri: https://
|
699
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE4:00229055:645CE78F:qmsnapshot:101:root@pam:/status
|
700
700
|
body:
|
701
701
|
encoding: US-ASCII
|
702
702
|
string: ''
|
@@ -733,7 +733,7 @@ http_interactions:
|
|
733
733
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
734
734
|
- request:
|
735
735
|
method: get
|
736
|
-
uri: https://
|
736
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE4:00229055:645CE78F:qmsnapshot:101:root@pam:/log
|
737
737
|
body:
|
738
738
|
encoding: US-ASCII
|
739
739
|
string: ''
|
@@ -770,7 +770,7 @@ http_interactions:
|
|
770
770
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
771
771
|
- request:
|
772
772
|
method: get
|
773
|
-
uri: https://
|
773
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE4:00229055:645CE78F:qmsnapshot:101:root@pam:/status
|
774
774
|
body:
|
775
775
|
encoding: US-ASCII
|
776
776
|
string: ''
|
@@ -807,7 +807,7 @@ http_interactions:
|
|
807
807
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
808
808
|
- request:
|
809
809
|
method: get
|
810
|
-
uri: https://
|
810
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE4:00229055:645CE78F:qmsnapshot:101:root@pam:/log
|
811
811
|
body:
|
812
812
|
encoding: US-ASCII
|
813
813
|
string: ''
|
@@ -844,7 +844,7 @@ http_interactions:
|
|
844
844
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
845
845
|
- request:
|
846
846
|
method: get
|
847
|
-
uri: https://
|
847
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/snapshot
|
848
848
|
body:
|
849
849
|
encoding: US-ASCII
|
850
850
|
string: ''
|
@@ -882,7 +882,7 @@ http_interactions:
|
|
882
882
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
883
883
|
- request:
|
884
884
|
method: put
|
885
|
-
uri: https://
|
885
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/snapshot/snapshot1/config
|
886
886
|
body:
|
887
887
|
encoding: US-ASCII
|
888
888
|
string: description=Snapshot+1
|
@@ -921,7 +921,7 @@ http_interactions:
|
|
921
921
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
922
922
|
- request:
|
923
923
|
method: get
|
924
|
-
uri: https://
|
924
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/snapshot
|
925
925
|
body:
|
926
926
|
encoding: US-ASCII
|
927
927
|
string: ''
|
@@ -959,7 +959,7 @@ http_interactions:
|
|
959
959
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
960
960
|
- request:
|
961
961
|
method: get
|
962
|
-
uri: https://
|
962
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks
|
963
963
|
body:
|
964
964
|
encoding: US-ASCII
|
965
965
|
string: ''
|
@@ -1001,7 +1001,7 @@ http_interactions:
|
|
1001
1001
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
1002
1002
|
- request:
|
1003
1003
|
method: delete
|
1004
|
-
uri: https://
|
1004
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101/snapshot/snapshot1?force=0
|
1005
1005
|
body:
|
1006
1006
|
encoding: US-ASCII
|
1007
1007
|
string: ''
|
@@ -1040,7 +1040,7 @@ http_interactions:
|
|
1040
1040
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
1041
1041
|
- request:
|
1042
1042
|
method: get
|
1043
|
-
uri: https://
|
1043
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE5:00229093:645CE78F:qmdelsnapshot:101:root@pam:/status
|
1044
1044
|
body:
|
1045
1045
|
encoding: US-ASCII
|
1046
1046
|
string: ''
|
@@ -1077,7 +1077,7 @@ http_interactions:
|
|
1077
1077
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
1078
1078
|
- request:
|
1079
1079
|
method: get
|
1080
|
-
uri: https://
|
1080
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE5:00229093:645CE78F:qmdelsnapshot:101:root@pam:/log
|
1081
1081
|
body:
|
1082
1082
|
encoding: US-ASCII
|
1083
1083
|
string: ''
|
@@ -1114,7 +1114,7 @@ http_interactions:
|
|
1114
1114
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
1115
1115
|
- request:
|
1116
1116
|
method: get
|
1117
|
-
uri: https://
|
1117
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE5:00229093:645CE78F:qmdelsnapshot:101:root@pam:/status
|
1118
1118
|
body:
|
1119
1119
|
encoding: US-ASCII
|
1120
1120
|
string: ''
|
@@ -1151,7 +1151,7 @@ http_interactions:
|
|
1151
1151
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
1152
1152
|
- request:
|
1153
1153
|
method: get
|
1154
|
-
uri: https://
|
1154
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE5:00229093:645CE78F:qmdelsnapshot:101:root@pam:/log
|
1155
1155
|
body:
|
1156
1156
|
encoding: US-ASCII
|
1157
1157
|
string: ''
|
@@ -1188,7 +1188,7 @@ http_interactions:
|
|
1188
1188
|
recorded_at: Thu, 11 May 2023 13:03:11 GMT
|
1189
1189
|
- request:
|
1190
1190
|
method: delete
|
1191
|
-
uri: https://
|
1191
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/qemu/101
|
1192
1192
|
body:
|
1193
1193
|
encoding: US-ASCII
|
1194
1194
|
string: ''
|
@@ -1227,7 +1227,7 @@ http_interactions:
|
|
1227
1227
|
recorded_at: Thu, 11 May 2023 13:03:12 GMT
|
1228
1228
|
- request:
|
1229
1229
|
method: get
|
1230
|
-
uri: https://
|
1230
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE6:002290AF:645CE790:qmdestroy:101:root@pam:/status
|
1231
1231
|
body:
|
1232
1232
|
encoding: US-ASCII
|
1233
1233
|
string: ''
|
@@ -1264,7 +1264,7 @@ http_interactions:
|
|
1264
1264
|
recorded_at: Thu, 11 May 2023 13:03:12 GMT
|
1265
1265
|
- request:
|
1266
1266
|
method: get
|
1267
|
-
uri: https://
|
1267
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE6:002290AF:645CE790:qmdestroy:101:root@pam:/log
|
1268
1268
|
body:
|
1269
1269
|
encoding: US-ASCII
|
1270
1270
|
string: ''
|
@@ -1301,7 +1301,7 @@ http_interactions:
|
|
1301
1301
|
recorded_at: Thu, 11 May 2023 13:03:12 GMT
|
1302
1302
|
- request:
|
1303
1303
|
method: get
|
1304
|
-
uri: https://
|
1304
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE6:002290AF:645CE790:qmdestroy:101:root@pam:/status
|
1305
1305
|
body:
|
1306
1306
|
encoding: US-ASCII
|
1307
1307
|
string: ''
|
@@ -1338,7 +1338,7 @@ http_interactions:
|
|
1338
1338
|
recorded_at: Thu, 11 May 2023 13:03:12 GMT
|
1339
1339
|
- request:
|
1340
1340
|
method: get
|
1341
|
-
uri: https://
|
1341
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox-noris/tasks/UPID:proxmox-noris:00011DE6:002290AF:645CE790:qmdestroy:101:root@pam:/log
|
1342
1342
|
body:
|
1343
1343
|
encoding: US-ASCII
|
1344
1344
|
string: ''
|
@@ -30,7 +30,7 @@ describe Fog::Proxmox::DiskHelper do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
let(:scsi) do
|
33
|
-
{ scsi0: 'local-lvm:vm-100-disk-1,size=8,cache=none' }
|
33
|
+
{ scsi0: 'local-lvm:vm-100-disk-1,size=8,cache=none', scsi1: 'zdata:vm-221-disk-0' }
|
34
34
|
end
|
35
35
|
|
36
36
|
let(:virtio1) do
|
@@ -118,6 +118,13 @@ describe Fog::Proxmox::DiskHelper do
|
|
118
118
|
assert_equal('8', size)
|
119
119
|
end
|
120
120
|
|
121
|
+
it 'returns scsi get zdata storage and volid with no size' do
|
122
|
+
storage, volid, size = Fog::Proxmox::DiskHelper.extract_storage_volid_size(scsi[:scsi1])
|
123
|
+
assert_equal('zdata', storage)
|
124
|
+
assert_equal('zdata:vm-221-disk-0', volid)
|
125
|
+
assert_nil size
|
126
|
+
end
|
127
|
+
|
121
128
|
it 'returns virtio get local storage volid and size' do
|
122
129
|
storage, volid, size = Fog::Proxmox::DiskHelper.extract_storage_volid_size(virtio[:virtio1])
|
123
130
|
assert_equal('local', storage)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-proxmox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tristan Robert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|