def copy_presto_rpm_to_master(self, cluster=None):
        if not cluster:
            cluster = self.testcase.cluster

        rpm_path = os.path.join(self.rpm_dir, self.rpm_name)
        try:
            cluster.copy_to_host(rpm_path, cluster.master)
            self._check_if_corrupted_rpm(self.rpm_name, cluster)
        except __HOLE__:
            print 'Downloading RPM again'
            # try to download the RPM again if it's corrupt (but only once)
            StandalonePrestoInstaller._download_rpm()
            cluster.copy_to_host(rpm_path, cluster.master)
            self._check_if_corrupted_rpm(self.rpm_name, cluster)
        return self.rpm_name
dataset/ETHPy150Open prestodb/presto-admin/tests/product/standalone/presto_installer.py/StandalonePrestoInstaller.copy_presto_rpm_to_master