From 61da58308077c5cc21747048e0c5f27c22131291 Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Wed, 28 Feb 2018 21:44:58 -0600 Subject: [PATCH] Don't overwrite ip file if exists --- prepare-vms/lib/commands.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prepare-vms/lib/commands.sh b/prepare-vms/lib/commands.sh index c5dd969e..bcabd102 100644 --- a/prepare-vms/lib/commands.sh +++ b/prepare-vms/lib/commands.sh @@ -39,7 +39,10 @@ _cmd_cards() { need_tag $TAG need_settings $SETTINGS - aws_get_instance_ips_by_tag $TAG >tags/$TAG/ips.txt + # If you're not using AWS, populate the ips.txt file manually + if [ ! -f tags/$TAG/ips.txt ]; then + aws_get_instance_ips_by_tag $TAG >tags/$TAG/ips.txt + fi # Remove symlinks to old cards rm -f ips.html ips.pdf