|
From: <rm...@hy...> - 2007-03-25 04:24:30
|
Author: rmorgan Date: 2007-03-24 20:24:27 -0800 (Sat, 24 Mar 2007) New Revision: 3876 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3876 Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy Log: Fix resource id parsing. Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy 2007-03-25 03:57:59 UTC (rev 3875) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy 2007-03-25 04:24:27 UTC (rev 3876) @@ -88,7 +88,7 @@ def argType = (resourceVal instanceof String) ? 'str' : 'int' try { // If it's a string with an integer inside, try that - resourceVal = Integer.parseInt(resourceVal) + resourceVal = Integer.valueOf(resourceVal) argType = 'int' } catch(NumberFormatException e) { } |