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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bf4654378de049601f6a9c21e33b73209822933
4
- data.tar.gz: c08d66fbe94e1cd8559b6d390b076e56175503ce
3
+ metadata.gz: 7165a429a56a08cade9074e5ccb51b6d5d5413ef
4
+ data.tar.gz: 925dc8f130b7ef4a68715cef04110bc17115917a
5
5
  SHA512:
6
- metadata.gz: a50d6ba5aba45d8bb8de5eaceabe6833d45bec71154734a9b1b47e55190b6894637a71503db3b7fd09f7048f1c8e38f16b40ea25c65621772b7ba3b87d4ff9ba
7
- data.tar.gz: 7e6384a6cfe6825c3a2a21c3ec542ef9d6c58fac03267865231f23fe6795295debe5c931b96fcd1e499fb3d5934ad1c229c372ec063b65471f804d4fb708242b
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
- storageGB = 'null'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secured_cloud_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Vella