Skip to content

Commit

Permalink
[#438] Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillmakhonin committed Sep 10, 2018
1 parent 5134000 commit bd00555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions legion/legion/k8s/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ def _load_deployment_data(self):
for _ in range(LOAD_DATA_ITERATIONS):
all_deployments = extension_api.list_namespaced_deployment(self._k8s_service.metadata.namespace)
model_deployments = [deployment for deployment in all_deployments.items
if deployment.metadata.labels.get(DOMAIN_MODEL_ID) == self.id
and deployment.metadata.labels.get(DOMAIN_MODEL_VERSION) == self.version]
if deployment.metadata.labels.get(DOMAIN_MODEL_ID) == self.id
and deployment.metadata.labels.get(DOMAIN_MODEL_VERSION) == self.version]

if model_deployments:
self._deployment = model_deployments[0]
Expand Down

0 comments on commit bd00555

Please sign in to comment.