Skip to content

Commit 9d2ac56

Browse files
authored
Merge pull request teamhephy#38 from jianxiaoguo/dev
chore(volumes): modify mount summary
2 parents e1ec258 + 9da8005 commit 9d2ac56

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

rootfs/api/views.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def path(self, request, *args, **kwargs):
751751
# error if unsetting non-existing key
752752
if key not in path:
753753
raise UnprocessableEntity(
754-
'{} does not exist under {}'.format(key, pre_path.keys())) # noqa
754+
'{} does not exist under {}'.format(key, "volume")) # noqa
755755
path.pop(key)
756756
else:
757757
path[key] = value
@@ -766,11 +766,8 @@ def deploy(self, volume, pre_mount_path):
766766
latest_release = app.release_set.filter(failed=False).latest()
767767
latest_version = app.release_set.latest().version
768768
try:
769-
summary = "{user} deployed {app},".\
770-
format(user=self.request.user, app=app.id)
771-
for container_type, path in volume.path.items():
772-
summary += "{container_type} mount path {path} with volume {name}.".\
773-
format(container_type=container_type, path=path, name=volume.name) # noqa
769+
summary = "{user} changed volume mount for {volume}".\
770+
format(user=self.request.user, volume=volume.name)
774771
self.release = latest_release.new(
775772
self.request.user,
776773
config=latest_release.config,

0 commit comments

Comments
 (0)