app/models/miq_server/configuration_management.rb
# Callback from VMDB::Config::Activator#activate when the configuration has
#   changed for this server
Callback from VMDB::Config::Activator#activate when the configuration has
changed for this server
Callback from VMDB :: Config :: Activator#activate when the configuration has changed for this server
def config_activated(data)
    if respond_to?(:name) && data.name && name != data.name
      self.name = data.name
    end
    unless data.zone.nil?
      self.zone = Zone.find_by(:name => data.zone)
      save
    end
    update_capabilities
    save
  end
def config_activated ( data ) if respond_to? ( :name ) && data . name && name != data . name self . name = data . name end unless data . zone . nil? self . zone = Zone . find_by ( :name => data . zone ) save end update_capabilities save end
Callback from VMDB::Config::Activator#activate when the configuration has
changed for this server
Callback from VMDB :: Config :: Activator#activate when the configuration has changed for this server
# Check that the column exists in the table and we are passed data that does not match # the current vaule.  The first check allows this code to run if we migrate down then # back up again.
data
<not_specific>