summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-19 19:09:18 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-19 19:09:48 +0100
commit4df8a04f143ce7042299cdb35dc007f57cb8ff34 (patch)
tree228697926def5b7cb6ed629acb9e8426cbe1a6c2 /nixos
parent06fe4d9904e7b79f8b2cd94761237b72431acc62 (diff)
downloadnixpkgs-4df8a04f143ce7042299cdb35dc007f57cb8ff34.tar
nixpkgs-4df8a04f143ce7042299cdb35dc007f57cb8ff34.tar.gz
nixpkgs-4df8a04f143ce7042299cdb35dc007f57cb8ff34.tar.bz2
nixpkgs-4df8a04f143ce7042299cdb35dc007f57cb8ff34.tar.lz
nixpkgs-4df8a04f143ce7042299cdb35dc007f57cb8ff34.tar.xz
nixpkgs-4df8a04f143ce7042299cdb35dc007f57cb8ff34.tar.zst
nixpkgs-4df8a04f143ce7042299cdb35dc007f57cb8ff34.zip
Don't include the code name in the EBS AMI name
Diffstat (limited to 'nixos')
-rwxr-xr-xnixos/maintainers/scripts/ec2/create-ebs-amis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-ebs-amis.py b/nixos/maintainers/scripts/ec2/create-ebs-amis.py
index 2e7a3273118..541eadd7b8c 100755
--- a/nixos/maintainers/scripts/ec2/create-ebs-amis.py
+++ b/nixos/maintainers/scripts/ec2/create-ebs-amis.py
@@ -67,7 +67,7 @@ m.run_command("mkdir -p /mnt/etc/nixos")
 m.run_command("nix-channel --add http://nixos.org/channels/nixos-unstable")
 m.run_command("nix-channel --update")
 m.run_command("nixos-rebuild switch")
-version = m.run_command("nixos-version", capture_stdout=True).replace('"', '').rstrip()
+version = m.run_command("nixos-version", capture_stdout=True).split(' ')[0]
 print >> sys.stderr, "NixOS version is {0}".format(version)
 m.upload_file("./amazon-base-config.nix", "/mnt/etc/nixos/configuration.nix")
 m.run_command("nixos-install")