Merge branch 'master' into 2.1

This commit is contained in:
Julien Duponchelle committed 2017-07-11 18:59:50 +02:00
commit 699ecb7c89
7 files changed
+338 -10

No files matched your search

+3
View File
@@ -612,6 +612,9 @@ class Project:
:param name: Name of the snapshot
"""
if name in [snap.name for snap in self.snapshots.values()]:
raise aiohttp.web_exceptions.HTTPConflict(text="The snapshot {} already exist".format(name))
snapshot = Snapshot(self, name=name)
try:
if os.path.exists(snapshot.path):