Skip to content

Commit

Permalink
fix: Format documentation and added comment explaining a sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
jotacarma90 committed Aug 13, 2021
1 parent 722556e commit d2d6f33
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
"""
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit d2d6f33

Please sign in to comment.