From 34ad6b63ed6b87e40da137b4e2a2d9a4e181442d Mon Sep 17 00:00:00 2001 From: Aymeric Barantal Date: Wed, 21 Sep 2011 14:46:41 +0200 Subject: [PATCH 7/7] snapshot name must be len < 15 --- libcloud/compute/drivers/gandi.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libcloud/compute/drivers/gandi.py b/libcloud/compute/drivers/gandi.py index 5f8dc81..913b327 100644 --- a/libcloud/compute/drivers/gandi.py +++ b/libcloud/compute/drivers/gandi.py @@ -363,7 +363,7 @@ class GandiNodeDriver(BaseGandiDriver, NodeDriver): raise GandiException(1021, "Disk %s can't snapshot" % disk.id) if not name: suffix = datetime.today().strftime("%Y%m%d") - name = "%s_%s" % (disk.name, suffix) + name = "snap_%s" % (suffix) op = self.connection.request('disk.create_from', { 'name': name, -- 1.7.6.1