Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository and Deployment refactor and cleanup #771

Merged
merged 9 commits into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bentoml/yatai/client/deployment_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
)
from bentoml.exceptions import BentoMLException, YataiDeploymentException
from bentoml.yatai.proto import status_pb2
from bentoml.yatai.validator import validate_deployment_pb_schema
from bentoml.yatai.validator import validate_deployment_pb
from bentoml.yatai.deployment_utils import (
deployment_yaml_string_to_pb,
deployment_dict_to_pb,
Expand Down Expand Up @@ -120,7 +120,7 @@ def create(self, deployment_info, wait):
)
)

validation_errors = validate_deployment_pb_schema(deployment_pb)
validation_errors = validate_deployment_pb(deployment_pb)
if validation_errors:
raise YataiDeploymentException(
f'Failed to validate deployment {deployment_pb.name}: '
Expand Down Expand Up @@ -168,7 +168,7 @@ def apply(self, deployment_info, wait):
)
)

validation_errors = validate_deployment_pb_schema(deployment_pb)
validation_errors = validate_deployment_pb(deployment_pb)
if validation_errors:
raise YataiDeploymentException(
f'Failed to validate deployment {deployment_pb.name}: '
Expand Down
Loading