Merge pull request #19535 from brendandburns/salt

Check that num_nodes is both defined and not None, not just defined
This commit is contained in:
Alex Mohr 2016-01-21 10:42:53 -08:00
commit 4c8e28b77c
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{% set heapster_memory = "300Mi" -%}
{% if pillar['num_nodes'] is defined -%}
{% if pillar['num_nodes'] is defined and pillar['num_nodes'] is not None -%}
{% set heapster_memory = (200 + pillar['num_nodes'] * 12)|string + "Mi" -%}
{% endif -%}

View File

@ -1,5 +1,5 @@
{% set heapster_memory = "300Mi" -%}
{% if pillar['num_nodes'] is defined -%}
{% if pillar['num_nodes'] is defined and pillar['num_nodes'] is not None -%}
{% set heapster_memory = (200 + pillar['num_nodes'] * 12)|string + "Mi" -%}
{% endif -%}

View File

@ -1,5 +1,5 @@
{% set heapster_memory = "300Mi" -%}
{% if pillar['num_nodes'] is defined -%}
{% if pillar['num_nodes'] is defined and pillar['num_nodes'] is not None -%}
{% set heapster_memory = (200 + pillar['num_nodes'] * 12)|string + "Mi" -%}
{% endif -%}

View File

@ -1,5 +1,5 @@
{% set heapster_memory = "300Mi" -%}
{% if pillar['num_nodes'] is defined -%}
{% if pillar['num_nodes'] is defined and pillar['num_nodes'] is not None -%}
{% set heapster_memory = (200 + pillar['num_nodes'] * 12)|string + "Mi" -%}
{% endif -%}