Skip to content

Commit

Permalink
Merge pull request #19458 from agrare/remove_check_for_current_snapshot
Browse files Browse the repository at this point in the history
Remove the check for a "current" snapshot
  • Loading branch information
gmcculloug committed Nov 5, 2019
2 parents e2f0281 + 2855ddb commit afc0c44
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/models/vm_or_template/operations/snapshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ module VmOrTemplate::Operations::Snapshot
included do
supports :snapshot_create do
if supports_snapshots?
if !snapshots.blank? && snapshots.first.get_current_snapshot.nil?
unsupported_reason_add(:snapshot_create, _("At least one snapshot has to be active to create a new snapshot for this VM"))
end
unless supports_control?
unsupported_reason_add(:snapshot_create, unsupported_reason(:control))
end
Expand Down

0 comments on commit afc0c44

Please sign in to comment.