Skip to content

Commit b0847ed

Browse files
author
Gerard Hickey
committed
Removed references to hardware facter in registration controller
1 parent 7abc5ec commit b0847ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

hanlon_microkernel/hnl_mk_registration_manager.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
require 'facter'
88
require 'yaml'
99
require 'hanlon_microkernel/hnl_mk_fact_manager'
10-
require 'hanlon_microkernel/hnl_mk_hardware_facter'
1110
require 'hanlon_microkernel/logging'
1211

1312
# set up a global variable that will be used in the HanlonMicrokernel::Logging mixin
@@ -27,7 +26,6 @@ def initialize(registration_uri, exclude_pattern, fact_manager)
2726
@registration_uri = registration_uri
2827
@exclude_pattern = exclude_pattern
2928
@fact_manager = fact_manager
30-
@hardware_facter = HnlMkHardwareFacter.instance
3129
end
3230

3331
def register_node(last_state)
@@ -49,7 +47,6 @@ def register_with_server(last_state, only_if_changed = false)
4947
Facter.each { |name, value|
5048
fact_map[name.to_sym] = value if !@exclude_pattern || !(name =~ @exclude_pattern)
5149
}
52-
@hardware_facter.add_facts_to_map!(fact_map, @exclude_pattern)
5350
# if "only_if_changed" input argument (above) is false or current facts
5451
# are different from the last set of facts that were saved, then register
5552
# this node

0 commit comments

Comments
 (0)