From 432f79339c1439c900b4f105d6ac18789200ce82 Mon Sep 17 00:00:00 2001 From: Gilles Cornu Date: Fri, 17 Jun 2016 18:14:29 +0200 Subject: [PATCH] provisioners/ansible(base): Add parenthesis for better readability Make more evident on what the "if modifiers" (aka trailing conditionals) apply. --- plugins/provisioners/ansible/provisioner/base.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/provisioners/ansible/provisioner/base.rb b/plugins/provisioners/ansible/provisioner/base.rb index e0807ec27..ed020b618 100644 --- a/plugins/provisioners/ansible/provisioner/base.rb +++ b/plugins/provisioners/ansible/provisioner/base.rb @@ -26,12 +26,12 @@ module VagrantPlugins end def check_files_existence - check_path_is_a_file config.playbook, :playbook + check_path_is_a_file(config.playbook, :playbook) - check_path_exists config.inventory_path, :inventory_path if config.inventory_path - check_path_is_a_file config.extra_vars[1..-1], :extra_vars if has_an_extra_vars_file_argument - check_path_is_a_file config.galaxy_role_file, :galaxy_role_file if config.galaxy_role_file - check_path_is_a_file config.vault_password_file, :vault_password if config.vault_password_file + check_path_exists(config.inventory_path, :inventory_path) if config.inventory_path + check_path_is_a_file(config.extra_vars[1..-1], :extra_vars) if has_an_extra_vars_file_argument + check_path_is_a_file(config.galaxy_role_file, :galaxy_role_file) if config.galaxy_role_file + check_path_is_a_file(config.vault_password_file, :vault_password_file) if config.vault_password_file end def ansible_playbook_command_for_shell_execution