forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ManageIQ#97 from tinaafitz/vm_reconfigure_request_…
…service_model Add vm_reconfigure_request service model. (cherry picked from commit e8b6ccd6732fe3e9ff4e347670309c7f34bb196c) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1565724
- Loading branch information
1 parent
9cf668a
commit 7484d78
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
lib/miq_automation_engine/service_models/miq_ae_service_vm_migrate_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
lib/miq_automation_engine/service_models/miq_ae_service_vm_reconfigure_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
module MiqAeMethodService | ||
class MiqAeServiceVmReconfigureRequest < MiqAeServiceMiqRequest | ||
require_relative "mixins/miq_ae_service_miq_provision_quota_mixin" | ||
include MiqAeServiceMiqProvisionQuotaMixin | ||
def ci_type | ||
'vm' | ||
end | ||
end | ||
end |
6 changes: 6 additions & 0 deletions
6
lib/miq_automation_engine/service_models/mixins/miq_ae_service_miq_provision_quota_mixin.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module MiqAeServiceMiqProvisionQuotaMixin | ||
extend ActiveSupport::Concern | ||
included do | ||
expose(:check_quota) | ||
end | ||
end |