mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +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:
parent
14a8532ee0
commit
e27ee81304
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue