Skip to content

Commit

Permalink
Merge pull request #16381 from sseago/resize_approval_edit
Browse files Browse the repository at this point in the history
Fix resize approval to work for editing requests
(cherry picked from commit a983f61)
  • Loading branch information
gmcculloug authored and simaishi committed Nov 14, 2017
1 parent 88b89e7 commit 5b9c969
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/vm_cloud_reconfigure_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5b9c969

Please sign in to comment.