Commit 4b1de2dd authored by Łukasz Nowak's avatar Łukasz Nowak

slapos: Use one source for default promise timeout

parent 90855e9e
......@@ -32,7 +32,7 @@ from slapos.cli.config import ConfigCommand
from slapos.grid.utils import setRunning, setFinished
from slapos.grid.slapgrid import (merged_options, check_missing_parameters, check_missing_files,
random_delay, create_slapgrid_object)
random_delay, create_slapgrid_object, PROMISE_TIMEOUT)
from slapos.util import string_to_boolean
......@@ -81,7 +81,7 @@ class SlapgridCommand(ConfigCommand):
type=int,
help='Periodicity at which buildout should be run in instance.')
ap.add_argument('--promise-timeout',
default=3,
default=PROMISE_TIMEOUT,
type=int,
help='Promise timeout in seconds'
' (default: %(default)s)')
......
......@@ -323,7 +323,7 @@ class Slapgrid(object):
upload_dir_url=None,
master_ca_file=None,
certificate_repository_path=None,
promise_timeout=3,
promise_timeout=PROMISE_TIMEOUT,
shacache_ca_file=None,
shacache_cert_file=None,
shacache_key_file=None,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment