manageiq-smartstate 0.6.0 → 0.6.1

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
- SHA256:
3
- metadata.gz: dc46ede682ac6c4b95558f1856c26b8bedda0cc01a8d4302d72530cf9cf01cbc
4
- data.tar.gz: ded7f8e35edf8a05db918015aaec80b934256232df374a428eb5e22a7911f1ac
2
+ SHA1:
3
+ metadata.gz: ad98b0da6ec85622b240995d35201dd26577b187
4
+ data.tar.gz: 882b7ae61688928df8d57adba2a93444a370e490
5
5
  SHA512:
6
- metadata.gz: ecb7a9753e7863f0a1c2e755e238d45ba88036dd8660a5a71507157347e034e324ff5e5352a056fb7f840aeeb5f761a1224d9172aa7986b71aee9c967ff68211
7
- data.tar.gz: 24ffa299fb984257c85b907a7acd57fd4c364512af79dda73b3c73b6ed610a1f2c61de34750433090d81092659754f6820d16416ea470cdb4ffac8ee86f8352b
6
+ metadata.gz: e3d1ea4dbeae6ffe6cc9599feb7f6724b17fe59539b3cc55d38886a67ae33205db180e9fd13916d2ea243249118c6157fc07e0c97dfcbe7450306292c33d3bd4
7
+ data.tar.gz: 250ec76ecf1e7f900f59c23130273e566a691f1becf54766c12a0e0f6ff533a47e1efac2f56d8b501e01b8fe4edd5e607e7f466be4600a32ddff93b20e26b3f0
@@ -42,7 +42,7 @@ class MiqRhevmVm < MiqVm
42
42
  disks = @rhevm.collect_vm_disks(@rhevmVm)
43
43
  disks.each_with_index do |disk, idx|
44
44
  $log.debug "MiqRhevmVm#getCfg: disk = #{disk.inspect}"
45
- storage_domain = disk.storage_domains.first
45
+ storage_domain = disk.storage_domains&.first
46
46
  if storage_domain.nil?
47
47
  $log.info("Disk <#{disk.name}> is skipped due to unassigned storage domain")
48
48
  next
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.6.0".freeze
3
+ VERSION = "0.6.1".freeze
4
4
  end
5
5
  end
@@ -99,7 +99,7 @@ class MIQExtract
99
99
  yield({:msg => 'Scanning Profile-Registry'}) if block_given?
100
100
 
101
101
  filters = []
102
- reg_filters[:HKCU].to_miq_a.each { |f| filters << {:key => split_registry(f['key']).join('/'), :depth => f['depth']} }
102
+ Array.wrap(reg_filters[:HKCU]).each { |f| filters << {:key => split_registry(f['key']).join('/'), :depth => f['depth']} }
103
103
  @scanProfiles.parse_data(@target, RemoteRegistry.new(@systemFs, @xml_class).loadCurrentUser(filters)) unless filters.empty?
104
104
 
105
105
  filters = {}
@@ -126,7 +126,7 @@ class MIQExtract
126
126
 
127
127
  def extract(category, &blk)
128
128
  xml = nil
129
- category.to_miq_a.each do |c|
129
+ Array.wrap(category).each do |c|
130
130
  c = c.downcase
131
131
  xml = case c
132
132
  when "accounts" then getAccounts(c)
@@ -498,7 +498,7 @@ class VmConfig
498
498
  end
499
499
 
500
500
  def rhevm_disk_file_entry(disk)
501
- storage_id = disk.storage_domains.first&.id
501
+ storage_id = disk.storage_domains&.first&.id
502
502
  disk_id = disk.image_id || disk.id
503
503
  full_path = storage_id && File.join('/dev', storage_id, disk_id)
504
504
  {:path => full_path, :name => disk_id, :size => disk.actual_size.to_i}
@@ -550,7 +550,7 @@ class VmConfig
550
550
  elsif miqvm.rhevmVm
551
551
  disks = miqvm.rhevm.collect_vm_disks(miqvm.rhevmVm)
552
552
  disks.each do |disk|
553
- storage_id = disk.storage_domains.first&.id
553
+ storage_id = disk.storage_domains&.first&.id
554
554
  disk_id = disk.image_id || disk.id
555
555
  full_path = storage_id && File.join('/dev', storage_id, disk_id)
556
556
  d = {:path => full_path, :name => disk.name.to_s, :size => disk.actual_size.to_i}
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
+ spec.add_dependency "activesupport"
23
24
  spec.add_dependency "azure-armrest", "~> 0.9"
24
25
  spec.add_dependency "binary_struct", "~> 2.1"
25
26
  spec.add_dependency "iniparse"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-04 00:00:00.000000000 Z
11
+ date: 2020-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: azure-armrest
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -277,7 +291,7 @@ dependencies:
277
291
  - !ruby/object:Gem::Version
278
292
  version: 1.0.0
279
293
  description: ManageIQ SmartState Analysis
280
- email:
294
+ email:
281
295
  executables: []
282
296
  extensions: []
283
297
  extra_rdoc_files: []
@@ -560,7 +574,7 @@ homepage: https://github.com/ManageIQ/manageiq-smartstate
560
574
  licenses:
561
575
  - Apache-2.0
562
576
  metadata: {}
563
- post_install_message:
577
+ post_install_message:
564
578
  rdoc_options: []
565
579
  require_paths:
566
580
  - lib
@@ -575,8 +589,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
575
589
  - !ruby/object:Gem::Version
576
590
  version: '0'
577
591
  requirements: []
578
- rubygems_version: 3.1.3
579
- signing_key:
592
+ rubyforge_project:
593
+ rubygems_version: 2.6.12
594
+ signing_key:
580
595
  specification_version: 4
581
596
  summary: ManageIQ SmartState Analysis
582
597
  test_files: []