Skip to content

Commit b22b6fd

Browse files
author
lijianguo
committed
chore(volumes): mount path check container_types
1 parent 5598230 commit b22b6fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rootfs/api/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ def path(self, request, *args, **kwargs):
665665
raise DryccException("path is a required field")
666666
obj = self.get_object()
667667
container_types = [_ for _ in new_path.keys()
668-
if _ not in obj.app.procfile_structure.keys()]
668+
if _ not in obj.app.procfile_structure.keys() or
669+
_ not in obj.app.structure.keys()]
669670
if container_types:
670671
raise DryccException("process type {} is not included in profile".
671672
format(','.join(container_types)))

0 commit comments

Comments
 (0)