Fixed some issues.
This commit is contained in:
parent
7cc2af420b
commit
58d3dd6624
2 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ class HostingManageVMAdmin(admin.ModelAdmin):
|
|||
"""
|
||||
vm_id = oca.VirtualMachine.allocate(self.client,
|
||||
vm_string_formatter.format(
|
||||
ssh_key='' # public key of the user
|
||||
ssh_key='', # public key of the user
|
||||
memory=1024 * vm_template_int, # memory in MB
|
||||
vcpu=vm_template_int, # vpcu
|
||||
cpu=0.1 * vm_template_int, # cpu
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
{% csrf_token %}
|
||||
<select id="vm_template" name="vm_template">
|
||||
<option value="select">Select a template</option>
|
||||
<option value="1">disk = 10GB, vcpu=1, ram=2GB</option>
|
||||
<option value="2">disk = 20GB, vcpu=2, ram=4GB</option>
|
||||
<option value="1">disk = 10GB, vcpu=1, ram=1GB</option>
|
||||
<option value="2">disk = 20GB, vcpu=2, ram=2GB</option>
|
||||
</select>
|
||||
<input type="submit" name="create_vm" value="Create VM" />
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue