commit | 0ff3ffb58d743214ffa05f604e9a9e6d06eb2c80 | [log] [tgz] |
---|---|---|
author | Alexander Gubanov <ogubanov@mirantis.com> | Wed Jul 01 15:49:06 2015 +0300 |
committer | Alexander Gubanov <ogubanov@mirantis.com> | Wed Jul 01 15:49:06 2015 +0300 |
tree | e44dbe80cd27ce53fab5d5761743bfcecf12a915 | |
parent | e05f6936f8cb1ff84978c4326a6e1edf9251c3c1 [diff] [blame] |
Fix useless usage of Linux utils Change-Id: I1fcab34485d8150d1e595b376767392520a19b7c
diff --git a/tempest/common/utils/linux/remote_client.py b/tempest/common/utils/linux/remote_client.py index d4e6eb8..7682c31 100644 --- a/tempest/common/utils/linux/remote_client.py +++ b/tempest/common/utils/linux/remote_client.py
@@ -72,8 +72,7 @@ return output.split()[1] def get_number_of_vcpus(self): - command = 'cat /proc/cpuinfo | grep processor | wc -l' - output = self.exec_command(command) + output = self.exec_command('grep -c processor /proc/cpuinfo') return int(output) def get_partitions(self):