Skip to content

Commit

Permalink
Include MiqProvisionQuotaMixin.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaafitz committed Dec 8, 2017
1 parent 00a2fdc commit f5deade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/vm_migrate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
1 change: 1 addition & 0 deletions app/models/vm_reconfigure_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5deade

Please sign in to comment.