From c3253e28095aaf3b55ed63cede6edffd70145f2c Mon Sep 17 00:00:00 2001 From: Scott Seago Date: Wed, 1 Nov 2017 12:25:04 -0400 Subject: [PATCH] Fix resize approval to work for editing requests --- app/models/vm_cloud_reconfigure_request.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/vm_cloud_reconfigure_request.rb b/app/models/vm_cloud_reconfigure_request.rb index 7ad8c8412c2..06ebcecd221 100644 --- a/app/models/vm_cloud_reconfigure_request.rb +++ b/app/models/vm_cloud_reconfigure_request.rb @@ -7,6 +7,10 @@ class VmCloudReconfigureRequest < MiqRequest :message => "should be pending, #{ACTIVE_STATES.join(", ")} or finished"} validate :must_have_user + def vms + Vm.find(options[:src_ids]) + end + def self.make_request(request, values, requester, auto_approve = false) values[:request_type] = :vm_cloud_reconfigure