From a0218039006bcc62a3e93700b48abc251bc15e17 Mon Sep 17 00:00:00 2001
From: Roger Luethi <rl@patchworkscience.org>
Date: Tue, 19 Aug 2014 15:55:56 +0200
Subject: [PATCH] labs: snapshot takes name, not description

The snapshot command as we use it now takes a name as an argument,
not a description. Update comment and snapshot name to reflect that.

Change-Id: Ie0b43b1816d89551af02b13575d6662242630c3a
Implements: blueprint openstack-training-labs
---
 labs/config/scripts.nodeinit_osbash | 2 +-
 labs/lib/osbash/functions.host      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/labs/config/scripts.nodeinit_osbash b/labs/config/scripts.nodeinit_osbash
index 6f811d50..64c5f579 100644
--- a/labs/config/scripts.nodeinit_osbash
+++ b/labs/config/scripts.nodeinit_osbash
@@ -5,4 +5,4 @@ osbash enable_vagrant_ssh_keys.sh
 scripts shutdown.sh
 boot
 wait_for_shutdown
-snapshot "Network configured."
+snapshot "network_configured"
diff --git a/labs/lib/osbash/functions.host b/labs/lib/osbash/functions.host
index 2b39ed24..c4f3a9e0 100644
--- a/labs/lib/osbash/functions.host
+++ b/labs/lib/osbash/functions.host
@@ -276,7 +276,7 @@ function autostart_from_config {
             echo >&2 _vbox_boot_with_autostart "$NODE_NAME" "$VM_SSH_PORT"
             _vbox_boot_with_autostart "$NODE_NAME" "$VM_SSH_PORT"
         elif [ "$field_1" == "snapshot" ]; then
-            # Format: snapshot "Description for snapshot"
+            # Format: snapshot <snapshot_name>
             echo >&2 vm_snapshot "$NODE_NAME" "$field_2"
             vm_snapshot "$NODE_NAME" "$field_2"
         elif [ "$field_1" == "wait_for_shutdown" ]; then