Skip to content

Commit 0e57969

Browse files
committed
Remove unused option for packer wrapper
1 parent ae94227 commit 0e57969

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

packer/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ This directory contains a python script named `packer` which wraps the system `p
88

99
### Running `packer`
1010

11-
To run the wrapper pass the environment, playbook, and any vars ansible is expecting:
11+
To run the wrapper pass the environment and playbook:
1212

1313
```bash
14-
$ ./packer staging docs-rs-builder --var "revision=SOME_REVISION5
14+
$ ./packer staging docs-rs-build
1515
```

packer/packer

+1-6
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,10 @@ if __name__ == "__main__":
5151
parser = argparse.ArgumentParser()
5252
parser.add_argument("env")
5353
parser.add_argument("playbook")
54-
parser.add_argument('--var', action='append', help='Ansible variables as $key=$value', default=[])
5554
args = parser.parse_args()
5655

5756
workspace = create_workspace(args.env, args.playbook)
58-
# Call packer with the right arguments from the workspace
59-
vars = []
60-
for var in args.var:
61-
vars += ["-var", var]
62-
cmd = ["packer", "build", *vars, "template"]
57+
cmd = ["packer", "build", "template"]
6358
res = subprocess.run(cmd, cwd=str(workspace))
6459
if res.returncode != 0:
6560
exit(1)

0 commit comments

Comments
 (0)