Merge "Replace strings with booleans in memory details"
This commit is contained in:
commit
dff397a114
@ -33,7 +33,7 @@ class UpdateMemory(tables.LinkAction):
|
||||
|
||||
|
||||
def get_processor_memory(memory):
|
||||
if memory.hugepages_configured == 'True':
|
||||
if memory.hugepages_configured is True:
|
||||
template_name = \
|
||||
'admin/inventory/memorys/_memoryfunction_hugepages.html'
|
||||
else:
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% if memory.hugepages_configured == 'True' %}
|
||||
{% if memory.hugepages_configured == True %}
|
||||
|
||||
<strong>{{ "4K Pages: " }}</strong> {{ "<br>" }}
|
||||
<strong>{{ " Total: " }}</strong> {{ memory.vm_hugepages_nr_4K }} {{ "<br>" }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% if memory.hugepages_configured == 'True' %}
|
||||
{% if memory.hugepages_configured == True %}
|
||||
<strong>{{ "Size: " }}</strong> {{ memory.vswitch_hugepages_size_mib }} {{ " MiB" }} {{ "<br>" }}
|
||||
{% if memory.vswitch_hugepages_reqd or memory.vswitch_hugepages_reqd == 0 %}
|
||||
<strong>{{ " Total: " }}</strong> {{ memory.vswitch_hugepages_nr }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user