From 15f710331b8ebc86e0b4f55a27012e104085e85b Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Sun, 30 Nov 2014 22:29:33 -0500 Subject: [PATCH] Extra var parsing added a check for an empty string --- awx/ui/static/js/helpers/Variables.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/helpers/Variables.js b/awx/ui/static/js/helpers/Variables.js index a03d359dc2..a1b2047eef 100644 --- a/awx/ui/static/js/helpers/Variables.js +++ b/awx/ui/static/js/helpers/Variables.js @@ -103,7 +103,9 @@ angular.module('VariablesHelper', ['Utilities']) } } else { try { - + if(variables=== ""){ + variables = '---'; + } json_data = jsyaml.load(variables); if(json_data!==null){ $.each( json_data, function( key, value ) {