From 456fa1132bbe6ed96b3f614ac5506ef328fc664d Mon Sep 17 00:00:00 2001
From: Attila Farkas <ati@mail.muni.cz>
Date: Wed, 22 Jul 2020 11:55:46 +0200
Subject: [PATCH] fix error in extra_vars location

---
 modules/vagrant_generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/vagrant_generator.py b/modules/vagrant_generator.py
index dac0359..04490d3 100644
--- a/modules/vagrant_generator.py
+++ b/modules/vagrant_generator.py
@@ -137,7 +137,7 @@ def _create_ansible_commands(playbook_location, input_definitions, flags):
         if "ansible_local" in flags and flags["ansible_local"]:
             extra_vars_location = "/vagrant/extra_vars.yml"
         else:
-            extra_vars_location = flags["ansible_local"]
+            extra_vars_location = flags["extra_vars"]
         user_extra_vars = dict()
         user_extra_vars["type"] = "string"
         user_extra_vars["command"] = "raw_arguments"
-- 
GitLab