mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
Live resize VM Memory activate. Redirection fix for resizing operations. Some typo & indent fix
This commit is contained in:
parent
228a0949d1
commit
60684cc7b1
2 changed files with 8 additions and 13 deletions
|
@ -432,11 +432,7 @@
|
||||||
<small><input type="checkbox" class="js-custom__checkbox" /> {% trans "Custom value" %}</small>
|
<small><input type="checkbox" class="js-custom__checkbox" /> {% trans "Custom value" %}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% ifequal status 5 %}
|
|
||||||
<button type="submit" class="btn btn-lg btn-success pull-right" name="resizevm_mem">{% trans "Resize" %}</button>
|
<button type="submit" class="btn btn-lg btn-success pull-right" name="resizevm_mem">{% trans "Resize" %}</button>
|
||||||
{% else %}
|
|
||||||
<button class="btn btn-lg btn-success pull-right disabled">{% trans "Resize" %}</button>
|
|
||||||
{% endifequal %}
|
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "You don't have permission for resizing instance" %}
|
{% trans "You don't have permission for resizing instance" %}
|
||||||
|
@ -978,7 +974,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1052,7 +1052,7 @@ def get_host_instances(request, comp):
|
||||||
|
|
||||||
conn.close()
|
conn.close()
|
||||||
else:
|
else:
|
||||||
raise libvirtError("Problem occured with {} - {}".format(comp.name, status))
|
raise libvirtError("Problem occurred with {} - {}".format(comp.name, status))
|
||||||
return all_host_vms
|
return all_host_vms
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue