diff --git a/modules/vagrant_generator.py b/modules/vagrant_generator.py
index dac0359c59dcdb141176090fa3de6cef95458df7..04490d3b0398560cc43bb635b75107b03d8f9774 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"