@saharautils.inject_remote('r')
    def rpms_installed(self, r):
        rpm_cmd = 'rpm -q %s' % EPEL_RELEASE_PACKAGE_NAME
        ret_code, stdout = r.execute_command(rpm_cmd,
                                             run_as_root=True,
                                             raise_when_error=False)
        return ret_code == 0
dataset/ETHPy150Open openstack/sahara/sahara/plugins/hdp/hadoopserver.py/HadoopServer.rpms_installed/original