From d2d6f33566218b13fa077808ceece2ea1ff71a50 Mon Sep 17 00:00:00 2001 From: Jotacarma Date: Fri, 13 Aug 2021 12:02:17 +0200 Subject: [PATCH] fix: Format documentation and added comment explaining a sleep --- .../wazuh_testing/qa_ctl/provisioning/QAProvisioning.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/wazuh_testing/wazuh_testing/qa_ctl/provisioning/QAProvisioning.py b/deps/wazuh_testing/wazuh_testing/qa_ctl/provisioning/QAProvisioning.py index 993be678c5..a3eddcf1c8 100644 --- a/deps/wazuh_testing/wazuh_testing/qa_ctl/provisioning/QAProvisioning.py +++ b/deps/wazuh_testing/wazuh_testing/qa_ctl/provisioning/QAProvisioning.py @@ -18,6 +18,7 @@ class QAProvisioning(): host_list (list): List with every host given in config file. inventory_file_path (string): Path of the inventory file generated. wazuh_installation_paths (dict): Dict indicating the Wazuh installation paths for every host. + Args: provision_info (dict): Dict with all the info needed coming from config file. instances_list (list): List with every instance (each host) needed to build the ansible inventory. @@ -39,6 +40,7 @@ def __read_ansible_instance(self, host_info): Attributes: host_info (dict): Dict with the host info needed coming from config file. + Returns: instance (AnsibleInstance): Contains the AnsibleInstance for a given host. """ @@ -116,6 +118,7 @@ def process_deployment_data(self): install_mode=install_type, hosts=current_host) deployment_instance.install() + # Wait for Wazuh initialization before health_check sleep(60) deployment_instance.health_check()