rhtconsulting / puppet-jboss_admin

Puppet module for runtime configuration of a JBoss container
MIT License
15 stars 12 forks source link

cli_execution needs to handle negative long numbers in configuraton #93

Closed itewk closed 8 years ago

itewk commented 8 years ago

In JBoss EAP 6.3.2 the default JBoss EAP configuration contains -1L as a value for some "max" attributes. The current cli_execution can not handle these when parsing the CLI output to JSON

itewk commented 8 years ago

cli_execution already handles positive long values but not negative. Need to change the following:

.gsub(/ (\d+)L/, ' \1')

to

.gsub(/ (-?\d+)L/, ' \1')
itewk commented 8 years ago

merged into master