Skip to content

Commit

Permalink
Add to do_retire method
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Feb 15, 2018
1 parent 3a8682e commit 8f8b706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/models/vm_retire_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class VmRetireRequest < MiqRequest
SOURCE_CLASS_NAME = 'Vm'.freeze
ACTIVE_STATES = %w(retired) + base_class::ACTIVE_STATES

validates :request_state, :inclusion => { :in => %w(pending finished) + ACTIVE_STATES }, :message => "should be pending, #{ACTIVE_STATES.join(", ")} or finished"
validate :must_have_user
validates :request_state, :inclusion => { :in => %w(pending finished) + ACTIVE_STATES, :message => "should be pending, #{ACTIVE_STATES.join(", ")} or finished" }
validate :must_have_user

def my_zone
vm = Vm.find_by(:id => options[:src_ids])
Expand Down
3 changes: 0 additions & 3 deletions app/models/vm_retire_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,4 @@ def self.get_description(req_obj)
def after_request_task_create
update_attribute(:description, get_description)
end

def do_request
end
end

0 comments on commit 8f8b706

Please sign in to comment.