]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2297] Return output value directly
authorMukund Sivaraman <muks@isc.org>
Fri, 26 Oct 2012 01:20:21 +0000 (06:50 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 26 Oct 2012 01:20:21 +0000 (06:50 +0530)
src/lib/python/isc/sysinfo/tests/sysinfo_test.py

index 23633b2f90368733e43076e05de39f6743e9a494..9f1dd8f71fa3f5bd7d7e0abdef3fa4bd24698ec1 100644 (file)
@@ -190,7 +190,7 @@ def _my_freebsd_subprocess_check_output(command, faked_output):
         output = faked_output['smp-sysctl']
         if isinstance(output, Exception):
             raise output
-        return faked_output['smp-sysctl']
+        return output
     elif command == ['vmstat', '-H']:
         return b' procs    memory       page                    disks    traps          cpu\n r b w    avm     fre  flt  re  pi  po  fr  sr wd0 cd0  int   sys   cs us sy id\n 0 0 0   343434  123456   47   0   0   0   0   0   2   0    2    80   14  0  1 99\n'
     elif command == ['swapctl', '-s', '-k']: