2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 09:57:41 +00:00

[#1433] hammer: fixed passing attempts argument to execute

This commit is contained in:
Michal Nowikowski 2020-09-25 10:12:35 +02:00
parent 878158cba9
commit 6e27580d54

View File

@ -810,7 +810,8 @@ class VagrantEnv(object):
execute('vagrant ssh-config > %s' % ssh_cfg_path, cwd=self.vagrant_dir)
return ssh_cfg_path
def execute(self, cmd, timeout=None, raise_error=True, log_file_path=None, quiet=False, env=None):
def execute(self, cmd, timeout=None, raise_error=True, log_file_path=None, quiet=False, env=None,
attempts=1, sleep_time_after_attempt=None):
"""Execute provided command inside Vagrant system."""
if not env:
env = os.environ.copy()
@ -818,7 +819,8 @@ class VagrantEnv(object):
return execute('vagrant ssh -c "%s"' % cmd, env=env, cwd=self.vagrant_dir, timeout=timeout,
raise_error=raise_error, dry_run=self.dry_run, log_file_path=log_file_path,
quiet=quiet, check_times=self.check_times)
quiet=quiet, check_times=self.check_times,
attempts=attempts, sleep_time_after_attempt=sleep_time_after_attempt)
def prepare_system(self):
"""Prepare Vagrant system for building Kea."""