mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 05:53:13 +00:00
Whenever the iotune_args array uses "--smp", it needs cpudata.smp() which returns an integer instead of a string. So when iotune_args is passed to subprocess.check_call(), it actually throws "TypeError: expected str, bytes or os.PathLike object, not int" but "%s did not pass validation tests, it may not be on XFS..." is shown as the exception. Even though the user inputs correct arguments, it might still throw an error and confuse the user that he/she has not passed the right arguments. One simple fix is to use str(cpudata.smp()) instead of cpudata.smp(). Signed-off-by: JP-Reddy <guthijp.reddy@gmail.com> Message-Id: <20190406070118.48477-1-guthijp.reddy@gmail.com>