mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Added VM DRBD Status to appsettings
This commit is contained in:
parent
af5acc8c24
commit
421f17d5ca
4 changed files with 42 additions and 2 deletions
|
|
@ -128,8 +128,9 @@ def instance(request, pk):
|
|||
storages_host = sorted(instance.proxy.get_storages(True))
|
||||
net_models_host = instance.proxy.get_network_models()
|
||||
|
||||
instance.drbd = drbd_status(request, pk)
|
||||
instance.save()
|
||||
if app_settings.VM_DRBD_STATUS == 'True':
|
||||
instance.drbd = drbd_status(request, pk)
|
||||
instance.save()
|
||||
|
||||
return render(request, "instance.html", locals())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue