opennebula 6.10.4 → 6.10.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9475a084c23ce56f737cf7fe6c6ed309de66fe08ef05fbc22a705da9747bc89
4
- data.tar.gz: 3b6ed49152eab2767f67d5a9733e0ede39b6a8903563a3de9d8170ab92f9cdf6
3
+ metadata.gz: 2dd660b3a53ce98c4ac18bf8c92cf5851b9ec857855a44071291023e6cde5428
4
+ data.tar.gz: ca840e630977339f2ade674d44b447f42d2695c53509df15cccb3c3fca660d0a
5
5
  SHA512:
6
- metadata.gz: f60a33c17f5d751bf2877ddc216182cb471db64feb9b7a4f56c3e13b0506b74e5b1a7964813e2bfeb29dc899bdea65a677b84b47b3fa4aff23b5738060fe37e9
7
- data.tar.gz: 2d93c3c523aa5287790e19571f95e64106bc52e1f5b63a525bc4211c7249500900c51a658c05071bf13dcf921179c90f6dff160b67ddacd040d3a119825c39d6
6
+ metadata.gz: fa1889753b6655944e1b50bf5bf0b263473c1f8cba8d82d8a80cc6b034dc7d38753d5c4544343e61c09985d1c14d650514764a2f721ce458e64915ebb6837e49
7
+ data.tar.gz: 377c8a508a27e9560d22485753f96d85c48917c45a971a047da129b7c9d5ea097d60fe04ab022c4a9cc3944bcaf020a6add16148da047d95bfaccd1a036d6b21
@@ -51,7 +51,7 @@ end
51
51
  module CloudClient
52
52
 
53
53
  # OpenNebula version
54
- VERSION = '6.10.4'
54
+ VERSION = '6.10.5'
55
55
 
56
56
  # #########################################################################
57
57
  # Default location for the authentication file
data/lib/datacenter.rb CHANGED
@@ -916,7 +916,7 @@ module VCenterDriver
916
916
  spec.configSpec.uplinkPortPolicy =
917
917
  RbVmomi::VIM::DVSNameArrayUplinkPortPolicy.new
918
918
  spec.configSpec.uplinkPortPolicy.uplinkPortName = []
919
- (0..pnics.size-1).each do |index|
919
+ (0..(pnics.size-1)).each do |index|
920
920
  spec
921
921
  .configSpec
922
922
  .uplinkPortPolicy
@@ -973,7 +973,7 @@ module VCenterDriver
973
973
  orig_spec.uplinkPortPolicy =
974
974
  RbVmomi::VIM::DVSNameArrayUplinkPortPolicy.new
975
975
  orig_spec.uplinkPortPolicy.uplinkPortName = []
976
- (0..dvs['config.uplinkPortgroup'].length-1).each do |index|
976
+ (0..(dvs['config.uplinkPortgroup'].length-1)).each do |index|
977
977
  orig_spec
978
978
  .uplinkPortPolicy
979
979
  .uplinkPortName[index]="dvUplink#{index+1}"
@@ -989,7 +989,7 @@ module VCenterDriver
989
989
  RbVmomi::VIM::DVSNameArrayUplinkPortPolicy.new
990
990
  spec.uplinkPortPolicy.uplinkPortName = []
991
991
  (dvs['config.uplinkPortgroup']
992
- .length..num_pnics-1)
992
+ .length..(num_pnics-1))
993
993
  .each do |index|
994
994
  spec
995
995
  .uplinkPortPolicy
data/lib/host.rb CHANGED
@@ -943,7 +943,8 @@ module VCenterDriver
943
943
  rc = one_host.delete
944
944
 
945
945
  unless OpenNebula.is_error?(rc)
946
- raise "Could not update host: #{rc.message}"; end
946
+ raise "Could not update host: #{rc.message}"
947
+ end
947
948
 
948
949
  raise "Could not update host: #{update_error} "\
949
950
  "and could not delete host: #{rc.message}"
@@ -956,7 +957,8 @@ module VCenterDriver
956
957
  rc = one_host.delete
957
958
 
958
959
  unless OpenNebula.is_error?(rc)
959
- raise "Could not offline host: #{rc.message}"; end
960
+ raise "Could not offline host: #{rc.message}"
961
+ end
960
962
 
961
963
  raise "Could not offline host: #{update_error} "\
962
964
  "and could not delete host: #{rc.message}"
@@ -969,7 +971,8 @@ module VCenterDriver
969
971
  rc = one_host.delete
970
972
 
971
973
  unless OpenNebula.is_error?(rc)
972
- raise "Could not enable host: #{rc.message}"; end
974
+ raise "Could not enable host: #{rc.message}"
975
+ end
973
976
 
974
977
  raise "Could not enable host: #{update_error} "\
975
978
  "and could not delete host: #{rc.message}"
@@ -1388,7 +1391,8 @@ module VCenterDriver
1388
1391
 
1389
1392
  def update_pg(pg, switch_name, vlan_id)
1390
1393
  unless pg.spec.respond_to?(:vlanId) && pg.spec.vlanId != vlan_id
1391
- return; end
1394
+ return
1395
+ end
1392
1396
 
1393
1397
  # Backup original spec
1394
1398
  orig_spec = pg.spec
data/lib/models/role.rb CHANGED
@@ -928,7 +928,7 @@ module OpenNebula
928
928
  action = @@default_shutdown
929
929
  end
930
930
 
931
- nodes[0..n_nodes - 1].each do |node|
931
+ nodes[0..(n_nodes - 1)].each do |node|
932
932
  vm_id = node['deploy_id']
933
933
 
934
934
  Log.debug(LOG_COMP,
data/lib/network.rb CHANGED
@@ -284,7 +284,7 @@ module VCenterDriver
284
284
  )
285
285
 
286
286
  done = []
287
- (0..net_config[:refs].size-1).each do |i|
287
+ (0..(net_config[:refs].size-1)).each do |i|
288
288
  cl_id = net_config[:one_ids][i]
289
289
  next if cl_id == -1 || done.include?(cl_id)
290
290
 
data/lib/nsx_rule.rb CHANGED
@@ -167,7 +167,7 @@ end
167
167
  sg_range_port = xml_rule.xpath('RANGE').text
168
168
  if sg_range_port
169
169
  if sg_range_port.index(':')
170
- sg_port_from = sg_range_port[0..sg_range_port.index(':')-1]
170
+ sg_port_from = sg_range_port[0..(sg_range_port.index(':')-1)]
171
171
  sg_port_to = sg_range_port[sg_range_port.index(':')+1,
172
172
  sg_range_port.length]
173
173
  sg_ports = "#{sg_port_from}-#{sg_port_to}"
@@ -523,7 +523,7 @@ module OpenNebula
523
523
  roles = template['roles']
524
524
 
525
525
  roles.each_with_index do |role, role_index|
526
- roles[role_index+1..-1].each do |other_role|
526
+ roles[(role_index+1)..-1].each do |other_role|
527
527
  if role['name'] == other_role['name']
528
528
  raise Validator::ParseException,
529
529
  "Role name '#{role['name']}' is repeated"
data/lib/opennebula.rb CHANGED
@@ -79,5 +79,5 @@ require 'opennebula/backupjob_pool'
79
79
  module OpenNebula
80
80
 
81
81
  # OpenNebula version
82
- VERSION = '6.10.4'
82
+ VERSION = '6.10.5'
83
83
  end
data/lib/vi_helper.rb CHANGED
@@ -148,7 +148,7 @@ module VCenterDriver
148
148
 
149
149
  @sha256 ||= Digest::SHA256.new
150
150
  chain = opts[:key]
151
- hash = @sha256.hexdigest(chain)[0..nbytes-1]
151
+ hash = @sha256.hexdigest(chain)[0..(nbytes-1)]
152
152
 
153
153
  "#{opts[:name]}-#{hash}"
154
154
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opennebula
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.10.4
4
+ version: 6.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-29 00:00:00.000000000 Z
11
+ date: 2025-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri