Browse code

Merge "Fix is_service_enabled when using multiple arguments"

Jenkins authored on 2015/09/22 22:03:54
Showing 1 changed files
... ...
@@ -1842,8 +1842,7 @@ function is_service_enabled {
1842 1842
         # Look for top-level 'enabled' function for this service
1843 1843
         if type is_${service}_enabled >/dev/null 2>&1; then
1844 1844
             # A function exists for this service, use it
1845
-            is_${service}_enabled
1846
-            enabled=$?
1845
+            is_${service}_enabled && enabled=0
1847 1846
         fi
1848 1847
 
1849 1848
         # TODO(dtroyer): Remove these legacy special-cases after the is_XXX_enabled()