diff options
author | Sharada Shiddibhavi <sharada.shiddibhavi@intel.com> | 2017-09-05 15:42:33 +0000 |
---|---|---|
committer | Sharada Shiddibhavi <sharada.shiddibhavi@intel.com> | 2017-09-05 15:44:50 +0000 |
commit | 88e6ccad72bed9fb228540cd8050f9596d6eb1cd (patch) | |
tree | 8ae70d13095623c9f8f8a25ac6799435aec76087 /baro_tests/config_server.py | |
parent | 40751018a8118e7c28ed93b98d04e41c78240bea (diff) |
Adding different method to access compute and controllers
This patch is similar to previous patch in adding a different
method to log into the controller and compute nodes.
Change-Id: I75332fbb794605477a7c751b59016ffb1a8cf3f2
Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
Diffstat (limited to 'baro_tests/config_server.py')
-rw-r--r-- | baro_tests/config_server.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/baro_tests/config_server.py b/baro_tests/config_server.py index d9c83ce8..f156fcf7 100644 --- a/baro_tests/config_server.py +++ b/baro_tests/config_server.py @@ -292,8 +292,11 @@ class ConfigServer(object): for node in nodes: if compute_name == node.get_dict()['name']: stdout = node.run_cmd( - 'yum list installed | grep {}'.format(package)) - return len(stdout) > 0 + 'yum list installed | grep mcelog') + if 'mcelog' in stdout: + return 1 + else: + return 0 def is_libpqos_on_node(self, compute): """Check whether libpqos is present on compute node""" |