secured_cloud_api_client 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secured_cloud_api_client.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7165a429a56a08cade9074e5ccb51b6d5d5413ef
|
4
|
+
data.tar.gz: 925dc8f130b7ef4a68715cef04110bc17115917a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b7e827edb131cc7c77b614f1eb8fb46dd1c46cf65ab968aa6e105e88c47b59e8d3f77fd60e3388380cb50c8d30185ed9f0be15668a101ed93e96a2861224cb
|
7
|
+
data.tar.gz: 1cf8219f16d1b4e77af34fe4aa82b3423626658a7ef11eeb1f8cccee9f77573b9b0e712a940cb0251a8980df8e20ed24333858993486c88b4ef665e37ea7e54a
|
@@ -475,7 +475,11 @@ class SecuredCloudRestClient
|
|
475
475
|
storageType = '"SATA"'
|
476
476
|
|
477
477
|
if (storageGB == nil) then
|
478
|
-
|
478
|
+
if ((imageResource != nil) && (imageResource != ""))
|
479
|
+
storageGB = 'null'
|
480
|
+
else
|
481
|
+
raise ArgumentError, 'Config error: storageGB needs to be defined when creating VMs from OS template'
|
482
|
+
end
|
479
483
|
else
|
480
484
|
raise ArgumentError, 'Config error: storageGB needs to be a valid number' unless storageGB.is_a? Numeric
|
481
485
|
end
|