Skip to content

Commit

Permalink
Merge pull request ManageIQ#20775 from skateman/auth-key-pair-create
Browse files Browse the repository at this point in the history
Expose the auth_key_pair_create supports feature on EMSes
  • Loading branch information
agrare authored Nov 10, 2020
2 parents 9d88284 + 26e6a4d commit 726f487
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -263,6 +263,7 @@ def validate_zone_not_maintenance_when_ems_enabled?
virtual_column :total_vms_never, :type => :integer
virtual_column :total_vms_suspended, :type => :integer
virtual_total :total_subnets, :cloud_subnets
virtual_column :supports_auth_key_pair_create, :type => :boolean
virtual_column :supports_block_storage, :type => :boolean
virtual_column :supports_cloud_tenants, :type => :boolean
virtual_column :supports_volume_multiattachment, :type => :boolean
Expand Down Expand Up @@ -770,6 +771,10 @@ def total_vms_never; vm_count_by_state("never"); end

def total_vms_suspended; vm_count_by_state("suspended"); end

def supports_auth_key_pair_create
supports_auth_key_pair_create?
end

def supports_block_storage
supports_block_storage?
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 @@ -62,6 +62,7 @@ module SupportsFeatureMixin
:add_interface => 'Add Interface',
:add_security_group => 'Add Security Group',
:associate_floating_ip => 'Associate a Floating IP',
:auth_key_pair_create => 'Auth Key Pair Creation',
:clone => 'Clone',
# FIXME: this is just a internal helper and should be refactored
:control => 'Basic control operations',
Expand Down

0 comments on commit 726f487

Please sign in to comment.