From 66718d3abcfe7068551a1ac4d71ae1d5c3910c1c Mon Sep 17 00:00:00 2001 From: Brendan Shephard Date: Thu, 24 Feb 2022 23:23:51 +1000 Subject: [PATCH] Fix positional timeout arg The timeout argument was being incorrectly set to the verbosity value due to positional function argument instead of keywork args. This change is adding timeout to TripleoProvide and fixing the super()__init__ call to use keyword instead of positional args. Change-Id: Ie2f48a5fd8c5429ce5fb1ef04a56f53c9818e149 --- tripleoclient/workflows/tripleo_baremetal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tripleoclient/workflows/tripleo_baremetal.py b/tripleoclient/workflows/tripleo_baremetal.py index d85f686dc..8937b6d39 100644 --- a/tripleoclient/workflows/tripleo_baremetal.py +++ b/tripleoclient/workflows/tripleo_baremetal.py @@ -88,9 +88,9 @@ class TripleoProvide(TripleoBaremetal): """ def __init__(self, wait_for_bridge_mappings: bool = False, - verbosity: int = 1): + timeout: int = 60, verbosity: int = 1): - super().__init__(verbosity) + super().__init__(timeout=timeout, verbosity=verbosity) self.wait_for_bridge_mappings = wait_for_bridge_mappings def _wait_for_unlocked(self, node: str, timeout: int):