module_common.py
11.5 KB
-
Fix to make sure only strings are being joined · 27b2ae8d
Since BOOLEANS also contains integers, joining the list returns an error. Easy to test by giving a wrong value to a boolean argument: service name=httpd enabled=True Since True is not in the allowed BOOLEANS, it will cause the error, which in its turn bails out because it joins strings and integers. We may want to remove the integers from the choices since '0' and '1' are already in the list as strings. Personally I would expect only strings as arguments, not sure where these could be integers ??
Dag Wieers committed