From e27ee81304b83e20ad14266a76410e68eea22d30 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 27 Jul 2012 13:29:14 -0400 Subject: [PATCH] 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 --- maintainers/scripts/ec2/create-ebs-amis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maintainers/scripts/ec2/create-ebs-amis.py b/maintainers/scripts/ec2/create-ebs-amis.py index 0afa6d564e33..939bd30942dc 100755 --- a/maintainers/scripts/ec2/create-ebs-amis.py +++ b/maintainers/scripts/ec2/create-ebs-amis.py @@ -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()