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
  • Loading branch information
gmcculloug authored Nov 7, 2017
2 parents 98d5ff6 + c3253e2 commit a983f61
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 a983f61

Please sign in to comment.