From 2855ddb8f2930a37780c60577d1230858b17f690 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 5 Nov 2019 07:31:44 -0500 Subject: [PATCH] Remove the check for a "current" snapshot When creating a new snapshot and there is at least one snapshot already we are checking to ensure that the first snapshot is "current". This check isn't necessary and can prevent new snapshots from being created through MIQ when it is entirely possible through the underlying provider. Fixes https://github.com/ManageIQ/manageiq/issues/19396 --- app/models/vm_or_template/operations/snapshot.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/vm_or_template/operations/snapshot.rb b/app/models/vm_or_template/operations/snapshot.rb index 49d7eb49904..ff814e7f7ad 100644 --- a/app/models/vm_or_template/operations/snapshot.rb +++ b/app/models/vm_or_template/operations/snapshot.rb @@ -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