manageiq-smartstate 0.2.3 → 0.2.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: 7a58411f04e6cb4f1f7465257a437c3e744a62c4
4
- data.tar.gz: 223bf74877fb849f828ca38150ff29b31a44442a
3
+ metadata.gz: 1dd389dbf9f9fec03d4510a620f7f6a698874dc8
4
+ data.tar.gz: fb13eb029db7dbd409aac419eaddbd563926c3db
5
5
  SHA512:
6
- metadata.gz: f5a796988cb5966c6ba97c0de8e91601a65039a0f5f7d39fd8a4043019705363ff6daa8420563acf551c55da09a26e2f394ddda610ab84139a62bb4a3b028ca2
7
- data.tar.gz: 6560d6d1386c9a206832cd697131364af6e602ca90b4873c5a223dfcf407d855ac9308b704f8906af660ba2ebdff86be8a8d3bce1300ad01da7ed1d2e3ee13e5
6
+ metadata.gz: a6da3a5aae3feb6e15b38c0bd050bf060413409132ab69bbc45eee09ba98222e1c746fa6fde3e978be73fa9df6fd479f750437ba58da15aa68734833c0d4b8f1
7
+ data.tar.gz: ddd3e3674ec6327ff947b5682e4fa5dd597e8ae4a03523086fef682d5eaccc9877ab6db011cea8b009c76400b69cf54c7c0ea4991856a8b74387da779f8eea25
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.3".freeze
3
+ VERSION = "0.2.4".freeze
4
4
  end
5
5
  end
@@ -134,17 +134,15 @@ module MiqWin32
134
134
 
135
135
  # Get the patches (Win2000, Win2003, WinXP)
136
136
  reg_node = MIQRexml.findRegElement("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Hotfix", reg_doc.root)
137
- if reg_node
138
- reg_node.each_element_with_attribute(:keyname) do |e|
139
- attrs = XmlFind.decode(e, HOTFIX_MAPPING)
137
+ reg_node&.each_element_with_attribute(:keyname) do |e|
138
+ attrs = XmlFind.decode(e, HOTFIX_MAPPING)
140
139
 
141
- # Check both descriptions and take the first one with a value
142
- attrs.delete(:description2) if attrs[:description] || attrs[:description2].blank?
143
- attrs[:description] = attrs.delete(:description2) if attrs[:description2]
140
+ # Check both descriptions and take the first one with a value
141
+ attrs.delete(:description2) if attrs[:description] || attrs[:description2].blank?
142
+ attrs[:description] = attrs.delete(:description2) if attrs[:description2]
144
143
 
145
- attrs.merge!(:name => e.attributes[:keyname], :vendor => "Microsoft Corporation", :installed_on => @patch_install_dates[e.attributes[:keyname]])
146
- @patches << attrs
147
- end
144
+ attrs.merge!(:name => e.attributes[:keyname], :vendor => "Microsoft Corporation", :installed_on => @patch_install_dates[e.attributes[:keyname]]) unless e.attributes.nil? || e.attributes[:keyname].nil?
145
+ @patches << attrs
148
146
  end
149
147
 
150
148
  # Get the patches (Vista, Win2008, Windows 7)
@@ -152,6 +150,7 @@ module MiqWin32
152
150
  if reg_node
153
151
  hotfix = {}
154
152
  reg_node.each_element do |e|
153
+ next if e.attributes.nil? || e.attributes[:keyname].nil?
155
154
  if e.attributes[:keyname][0, 8] == 'Package_'
156
155
  # Expected pattern: Package_for_KBxxx_RTM~xxxx
157
156
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2017-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest