Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 4c19863

Browse files
committed
Merge pull request #5 from andyjp94/patch-2
Changed -vars-file to -var-file in Packer.build()
2 parents 01d30aa + e43dc51 commit 4c19863

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ packerfile = 'packer/tests/resources/packerfile.json'
3434
exc = []
3535
only = ['my_first_image', 'my_second_image']
3636
vars = {"variable1": "value1", "variable2": "value2"}
37-
vars_file = 'path/to/vars/file'
37+
var_file = 'path/to/var/file'
3838
packer_exec_path = '/usr/bin/packer'
3939

4040
p = packer.Packer(packerfile, exc=exc, only=only, vars=vars,
41-
vars_file=vars_file, exec_path=packer_exec_path)
41+
var_file=var_file, exec_path=packer_exec_path)
4242
p.build(parallel=True, debug=False, force=False)
4343
```
4444

@@ -171,4 +171,4 @@ The [sh](http://amoffat.github.io/sh/) Python module is used to execute Packer.
171171
As such, return values from all functional methods (`validate`, `build`, etc..) other than the `version` method
172172
will return an `sh` execution object. This is meant for you to be able to read stdout, stderr, exit codes and more after executing the commands. With the progression of `python-packer` less abstract objects will return and more concise return values will be provided.
173173

174-
Additionally, to verify that all errors return with as much info as possible, error handling is done gently. Most errors will raise an `sh` exception so that you're able to interact with them. Again, as this module progresses, these exceptions will be handled properly.
174+
Additionally, to verify that all errors return with as much info as possible, error handling is done gently. Most errors will raise an `sh` exception so that you're able to interact with them. Again, as this module progresses, these exceptions will be handled properly.

0 commit comments

Comments
 (0)