Skip to content
Permalink
Browse files

Include MiqProvisionQuotaMixin.

  • Loading branch information...
tinaafitz committed Dec 8, 2017
1 parent d5064ab commit 107f2ef14187f0177673565c7ede8a6deaecd998
@@ -6,6 +6,7 @@ class VmCloudReconfigureRequest < MiqRequest
validates :request_state, :inclusion => { :in => %w(pending finished) + ACTIVE_STATES,
:message => "should be pending, #{ACTIVE_STATES.join(", ")} or finished"}
validate :must_have_user
include MiqProvisionQuotaMixin

def vms
Vm.find(options[:src_ids])
@@ -5,6 +5,7 @@ class VmMigrateRequest < MiqRequest

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

def my_zone
vm = Vm.find_by(:id => options[:src_ids])
@@ -5,6 +5,7 @@ class VmReconfigureRequest < MiqRequest

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

def self.request_limits(options)
# Memory values are in megabytes

0 comments on commit 107f2ef

Please sign in to comment.
You can’t perform that action at this time.