Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Volume Resizing capability to SupportsFeatureMixin #18560

Merged
merged 1 commit into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def validate_zone_not_maintenance_when_ems_enabled?
virtual_total :total_subnets, :cloud_subnets
virtual_column :supports_block_storage, :type => :boolean
virtual_column :supports_volume_multiattachment, :type => :boolean
virtual_column :supports_volume_resizing, :type => :boolean
virtual_column :supports_cloud_object_store_container_create, :type => :boolean
virtual_column :supports_cinder_volume_types, :type => :boolean

Expand Down Expand Up @@ -636,6 +637,10 @@ def supports_volume_multiattachment
supports_volume_multiattachment?
end

def supports_volume_resizing
supports_volume_resizing?
end

def supports_cloud_object_store_container_create
supports_cloud_object_store_container_create?
end
Expand Down
1 change: 1 addition & 0 deletions app/models/mixins/supports_feature_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ module SupportsFeatureMixin
:object_storage => 'Object Storage',
:vm_import => 'VM Import',
:volume_multiattachment => 'Volume Multiattachment',
:volume_resizing => 'Volume Resizing',
:change_password => 'Change Password'
}.freeze

Expand Down