diff --git a/app/models/miq_widget.rb b/app/models/miq_widget.rb index 04495f01cac..861e0fe948d 100644 --- a/app/models/miq_widget.rb +++ b/app/models/miq_widget.rb @@ -472,7 +472,7 @@ def self.sync_from_hash(attrs) widget = find_by(:description => attrs["description"]) if widget - if filename && widget.updated_at.utc < File.mtime(filename).utc + if filename $log.info("Widget: [#{widget.description}] file has been updated on disk, synchronizing with model") ["enabled", "visibility"].each { |a| attrs.delete(a) } # Don't updates these because they may have been modofoed by the end user. widget.updated_at = Time.now.utc