opennebula-cli 5.8.3 → 5.8.4

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: baa824adea5c7a61933964fd95988c4e393044c0
4
- data.tar.gz: 9ff976adba64c246c8e3bc3d90030c86b72cb647
3
+ metadata.gz: 3da1f96f5523b5563fd189d3281e1162084815f6
4
+ data.tar.gz: d6bf1f07c1a907b54297eccdf9ee8f38c4bbb407
5
5
  SHA512:
6
- metadata.gz: 5e54c6da527153cd478e56d5169d012695ac31cea92f725394654cff0f8d3f2cdb10bf62147e45ca74e0b08c9105e4b7fe256cef173dfcea59c07aa4405c281d
7
- data.tar.gz: 108f4299bd86ca0f3f21b0f52b90c29de29696876e3c2c6941274ccf57a75a55667ae4680d387006666d7b6394510a132a8fbe6a4e90286450ea0c228d913dbc
6
+ metadata.gz: 2e9a3561a6ae34cb79b3ba2b57b0bac6b9e39519143a741d16206b678ca065eb50be84dc9378c2f76760f3deee4aef61c683cc05b3385d6f2010d81281b36606
7
+ data.tar.gz: 76ca8036103b4f5c6f316b361a8bc6eb1c83423ee98d29001a46737aaec3dd8a03341cfa7816f33b6bf00509a9e367eb3a9eae4e8b04c2e55f98b8916868e457
@@ -181,6 +181,12 @@ CommandParser::CmdParser.new(ARGV) do
181
181
  importer.retrieve_resources(helper.parse_opts(options))
182
182
  indexes = importer.get_indexes(args.first)
183
183
 
184
+ if indexes.nil?
185
+ raise "Could not get any unimported #{options[:object]}"\
186
+ " resources info in host: #{options[:host]} with"\
187
+ " this input: #{args.first}"
188
+ end
189
+
184
190
  importer.process_import(indexes) do |object_info|
185
191
  helper.cli_dialogue(object_info)
186
192
  end
@@ -176,12 +176,12 @@ class OneProvisionHelper < OpenNebulaHelper::OneHelper
176
176
  options,
177
177
  operation[:message]) do |obj|
178
178
  case type
179
- when 'HOST' then host_operation(obj,
180
- operation,
181
- options,
182
- args[1])
183
- when 'DATASTORE' then datastore_operation(obj, operation)
184
- when 'VNET' then vnet_operation(obj, operation)
179
+ when 'HOST'
180
+ host_operation(obj, operation, options, args[1])
181
+ when 'DATASTORE'
182
+ datastore_operation(obj, operation)
183
+ when 'VNET'
184
+ vnet_operation(obj, operation)
185
185
  end
186
186
  end
187
187
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opennebula-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.3
4
+ version: 5.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-18 00:00:00.000000000 Z
11
+ date: 2019-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opennebula
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.8.3
19
+ version: 5.8.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 5.8.3
26
+ version: 5.8.4
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.org
29
29
  executables: