Skip to content

Commit

Permalink
Merge pull request #20803 from skateman/expose-supports-create_host_a…
Browse files Browse the repository at this point in the history
…ggregate

Expose supports_create_host_aggregate as a virtual attribute on EMS
  • Loading branch information
agrare authored Nov 16, 2020
2 parents eb3447f + d09a2dc commit ac36bd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def validate_zone_not_maintenance_when_ems_enabled?
virtual_column :supports_create_flavor, :type => :boolean
virtual_column :supports_volume_availability_zones, :type => :boolean
virtual_column :supports_create_security_group, :type => :boolean
virtual_column :supports_create_host_aggregate, :type => :boolean
virtual_column :supports_storage_services, :type => :boolean

virtual_sum :total_vcpus, :hosts, :total_vcpus
Expand Down Expand Up @@ -799,6 +800,10 @@ def supports_cloud_object_store_container_create
supports_cloud_object_store_container_create?
end

def supports_create_host_aggregate
supports_create_host_aggregate?
end

def supports_cinder_volume_types
supports_cinder_volume_types?
end
Expand Down

0 comments on commit ac36bd8

Please sign in to comment.