From 9f6f475611e3e6e3f71ac28c611a4737cc2d3bd3 Mon Sep 17 00:00:00 2001 From: Apurva Raghunath Date: Wed, 13 Jul 2022 21:29:04 -0700 Subject: [PATCH] fix timeout --- .../device/plugins/module_utils/juniper_junos_common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible_collections/juniper/device/plugins/module_utils/juniper_junos_common.py b/ansible_collections/juniper/device/plugins/module_utils/juniper_junos_common.py index 1905d577..8e01b30d 100644 --- a/ansible_collections/juniper/device/plugins/module_utils/juniper_junos_common.py +++ b/ansible_collections/juniper/device/plugins/module_utils/juniper_junos_common.py @@ -1503,7 +1503,7 @@ def load_configuration(self, (str(ex))) def commit_configuration(self, ignore_warning=None, comment=None, - confirmed=None, full=False): + confirmed=None, timeout=30, full=False): """Commit the candidate configuration. Commit the configuration. Assumes the configuration is already opened. @@ -1518,7 +1518,7 @@ def commit_configuration(self, ignore_warning=None, comment=None, - An error returned from committing the configuration. """ if self.conn_type != "local": - self._pyez_conn.commit_configuration(ignore_warning, comment, confirmed) + self._pyez_conn.commit_configuration(ignore_warning, comment, timeout, confirmed) return if self.dev is None or self.config is None: @@ -1529,6 +1529,7 @@ def commit_configuration(self, ignore_warning=None, comment=None, self.config.commit(ignore_warning=ignore_warning, comment=comment, confirm=confirmed, + timeout=timeout, full=full) self.logger.debug("Configuration committed.") except (self.pyez_exception.RpcError,