manageiq-smartstate 0.2.3 → 0.2.4
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 +4 -4
- data/lib/manageiq/smartstate/version.rb +1 -1
- data/lib/metadata/util/win32/Win32Software.rb +8 -9
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1dd389dbf9f9fec03d4510a620f7f6a698874dc8
|
|
4
|
+
data.tar.gz: fb13eb029db7dbd409aac419eaddbd563926c3db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6da3a5aae3feb6e15b38c0bd050bf060413409132ab69bbc45eee09ba98222e1c746fa6fde3e978be73fa9df6fd479f750437ba58da15aa68734833c0d4b8f1
|
|
7
|
+
data.tar.gz: ddd3e3674ec6327ff947b5682e4fa5dd597e8ae4a03523086fef682d5eaccc9877ab6db011cea8b009c76400b69cf54c7c0ea4991856a8b74387da779f8eea25
|
|
@@ -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
|
-
|
|
138
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
146
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: azure-armrest
|