Skip to content

Commit

Permalink
Merge pull request ManageIQ#13944 from gauravaradhye/supports_snapshots
Browse files Browse the repository at this point in the history
Removed supports_snapshots? methods which were not using supportsFeatureMixin
  • Loading branch information
agrare authored Feb 16, 2017
2 parents f1b93b3 + 13046e4 commit 5f79ec5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions app/models/manageiq/providers/openstack/cloud_manager/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class ManageIQ::Providers::Openstack::CloudManager::Vm < ManageIQ::Providers::Cl
end
end

supports :snapshots

POWER_STATES = {
"ACTIVE" => "on",
"SHUTOFF" => "off",
Expand Down Expand Up @@ -161,8 +163,4 @@ def requires_storage_for_scan?
def memory_mb_available?
true
end

def supports_snapshots?
true
end
end
4 changes: 1 addition & 3 deletions app/models/vm_or_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1801,9 +1801,7 @@ def self.includes_template?(ids)
MiqTemplate.where(:id => ids).exists?
end

def supports_snapshots?
false
end
supports_not :snapshots

def self.batch_operation_supported?(operation, ids)
VmOrTemplate.where(:id => ids).all? do |vm_or_template|
Expand Down

0 comments on commit 5f79ec5

Please sign in to comment.