forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace virtual_aggregate calls with virtual_sum
virtual_attributes is about to have a new major version cut that includes a deprecation of virtual_aggregate we'll presumably want this sometime in the future when we update the version
- Loading branch information
Showing
4 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
module AggregationMixin | ||
extend ActiveSupport::Concern | ||
included do | ||
virtual_aggregate :aggregate_cpu_speed, :host_hardwares, :sum, :aggregate_cpu_speed | ||
virtual_aggregate :aggregate_cpu_total_cores, :host_hardwares, :sum, :cpu_total_cores | ||
virtual_aggregate :aggregate_disk_capacity, :host_hardwares, :sum, :disk_capacity | ||
virtual_aggregate :aggregate_memory, :host_hardwares, :sum, :memory_mb | ||
virtual_aggregate :aggregate_physical_cpus, :host_hardwares, :sum, :cpu_sockets | ||
virtual_aggregate :aggregate_vm_cpus, :vm_hardwares, :sum, :cpu_sockets | ||
virtual_aggregate :aggregate_vm_memory, :vm_hardwares, :sum, :memory_mb | ||
virtual_sum :aggregate_cpu_speed, :host_hardwares, :aggregate_cpu_speed | ||
virtual_sum :aggregate_cpu_total_cores, :host_hardwares, :cpu_total_cores | ||
virtual_sum :aggregate_disk_capacity, :host_hardwares, :disk_capacity | ||
virtual_sum :aggregate_memory, :host_hardwares, :memory_mb | ||
virtual_sum :aggregate_physical_cpus, :host_hardwares, :cpu_sockets | ||
virtual_sum :aggregate_vm_cpus, :vm_hardwares, :cpu_sockets | ||
virtual_sum :aggregate_vm_memory, :vm_hardwares, :memory_mb | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters