1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

create-ebs-amis.py: Load the deployment state file.

charon now requires either using a Deployment in a with statement or manually loading the state file
This commit is contained in:
Shea Levy 2012-07-27 13:29:14 -04:00
parent 14a8532ee0
commit e27ee81304

View file

@ -33,6 +33,7 @@ f.write('''{{
f.close()
depl = deployment.Deployment("./ebs-creator.json", create=True, nix_exprs=["./ebs-creator.nix", "./ebs-creator-config.nix"])
depl.load_state()
if not args.keep: depl.destroy_vms()
depl.deploy()
@ -163,6 +164,7 @@ f.write(
f.close()
test_depl = deployment.Deployment("./ebs-test.json", create=True, nix_exprs=["./ebs-test.nix"])
test_depl.load_state()
test_depl.deploy(create_only=True)
test_depl.machines['machine'].run_command("nixos-version")
if not args.keep: test_depl.destroy_vms()