app/models/mdm/service.rb in metasploit_data_models-3.0.10 vs app/models/mdm/service.rb in metasploit_data_models-4.0.0
- old
+ new
@@ -1,7 +1,7 @@
# A service, such as an ssh server or web server, running on a {#host}.
-class Mdm::Service < ActiveRecord::Base
+class Mdm::Service < ApplicationRecord
include Metasploit::Model::Search
#
# CONSTANTS
#
@@ -256,10 +256,10 @@
# {Mdm::Host::OperatingSystemNormalization#normalize_os Normalizes the host operating system} whenever {#info} has
# changed.
#
# @return [void]
def normalize_host_os
- if info_changed? && host.workspace.present? && !host.workspace.import_fingerprint
+ if saved_change_to_info? && host.workspace.present? && !host.workspace.import_fingerprint
host.normalize_os
end
end
Metasploit::Concern.run(self)