diff options
author | Andy Shevchenko <andy@smile.org.ua> | 2012-03-24 18:15:03 +0000 |
---|---|---|
committer | Andy Shevchenko <andy@smile.org.ua> | 2012-03-24 18:15:03 +0000 |
commit | 3066b9f5bfdca9ad863b8ab263406fb658ebe76e (patch) | |
tree | de4ec5076c71313dbe09148e7a7e6b82782adaec /renrot | |
parent | 83c07bbb5f45cda4ef13b7b2090a86983018435e (diff) | |
download | renrot-3066b9f5bfdca9ad863b8ab263406fb658ebe76e.tar.gz renrot-3066b9f5bfdca9ad863b8ab263406fb658ebe76e.tar.bz2 |
append Enable and Disable to boolConv recognized values
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
git-svn-id: file:///svnroot/renrot/trunk@600 fe2816f4-e837-0410-b10a-f608c9d244a1
Diffstat (limited to 'renrot')
-rwxr-xr-x | renrot | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -390,9 +390,9 @@ sub boolConv { # See Also : boolConv() sub boolConverter { my $value = trim_value(shift); - if ($value =~ m/^(0|No|False|Off)$/i) { + if ($value =~ m/^(0|No|False|Off|Disable)$/i) { return 0; - } elsif ($value =~ m/^(1|Yes|True|On)$/i) { + } elsif ($value =~ m/^(1|Yes|True|On|Enable)$/i) { return 1; } return $value; |