opennebula-cli 6.4.4 → 6.4.5

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
  SHA256:
3
- metadata.gz: 0d5eeea193733a9399e3b5c97920e82a289d083bfeb601858ff4ab25ac2b1115
4
- data.tar.gz: bea71341054d206681d9dc62626244fcd7c0f40dde51705fe43356d2c0bf58bd
3
+ metadata.gz: 30b1eeb0d6f269692aef6b3afd5e2ae31996d07ce53bc8a8c0ae5a7dec79e35a
4
+ data.tar.gz: 253e6141092946c85fc93beb7d07ef85017e3ae0945476328fe252c29749a263
5
5
  SHA512:
6
- metadata.gz: 1c3d70dda6a43fdd72248e13f00b5181ddf12b7ad39278905181aab2b7b5019f168ee293dff5b035369168a460c234d4deacd3e7c15f329218198dbd9d7be790
7
- data.tar.gz: 6be1f9d1845930a9c95d2e0d70c5f8cf3adf0da3e6025826404b4850410c14416700751c55673f46c23346f5270c4f5fe93e4771e19a76f5024bfd7706874fed
6
+ metadata.gz: c60d3275025ab5c39ce3e900cba7742e2e96490d27d3d30fd5d1f75d7f76160f424f65c58bc765e15ff8ca07512dbe8db968647c997b1f50965e93b539ce91b9
7
+ data.tar.gz: be9cbc8db9dc7c86e485e3bf690544710f082eec532f592921c5db1de17c396834227b0ab84eda0e515790441108fb1ae8522a35aff03354013c09954e97872e
data/bin/oneflow CHANGED
@@ -79,7 +79,7 @@ CommandParser::CmdParser.new(ARGV) do
79
79
  DELETE = {
80
80
  :name => 'delete',
81
81
  :large => '--delete',
82
- :description => 'Force flow necover delete'
82
+ :description => 'Force flow recover delete'
83
83
  }
84
84
 
85
85
  APPEND = {
@@ -162,6 +162,7 @@ CommandParser::CmdParser.new(ARGV) do
162
162
 
163
163
  delete_desc = <<-EOT.unindent
164
164
  Delete a given service
165
+ To force service removal please use 'oneflow recover --delete <service_id>' command
165
166
  EOT
166
167
 
167
168
  command :delete, delete_desc, [:range, :service_id_list] do
data/bin/onevm CHANGED
@@ -1457,10 +1457,7 @@ CommandParser::CmdParser.new(ARGV) do
1457
1457
  action.to_s,
1458
1458
  time[:warning][:time] + acc_w)
1459
1459
 
1460
- if OpenNebula.is_error?(rc)
1461
- STDERR.puts rc.message
1462
- exit(-1)
1463
- end
1460
+ exit(-1) if rc < 0
1464
1461
 
1465
1462
  acc_t += time[:time].to_i
1466
1463
  acc_w += time[:warning][:time].to_i
@@ -459,7 +459,8 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
459
459
  rc = vm.sched_action_add(tmp_str)
460
460
 
461
461
  if OpenNebula.is_error?(rc)
462
- return rc
462
+ STDERR.puts rc.message
463
+ return -1
463
464
  end
464
465
  end
465
466
  end
data/lib/one_helper.rb CHANGED
@@ -1263,6 +1263,7 @@ EOT
1263
1263
  #
1264
1264
  # @return [Hash] XSD in hash format, nil if not found
1265
1265
  def read_xsd(ename)
1266
+ require 'active_support'
1266
1267
  require 'active_support/core_ext/hash/conversions'
1267
1268
 
1268
1269
  # Try GEM directory
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: 6.4.4
4
+ version: 6.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-10 00:00:00.000000000 Z
11
+ date: 2023-11-23 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: 6.4.4
19
+ version: 6.4.5
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: 6.4.4
26
+ version: 6.4.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement