-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move quota calcuation methods into Template class
Move methods calculating the number of cpus, memory and storage (TODO) into the base MiqTemplate class. The is no common logic between cloud and infrastructure provider types, so the base MiqRequest just raises NotImplementedError. Most existing providers can use the common overrides provided in the CloudManager::Template and InfraManager::Template subclasses, but custom logic can be now be defined in each provider type subclass.
- Loading branch information
1 parent
d2bff93
commit 9167dd5
Showing
4 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
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