Skip to content

Commit 8386561

Browse files
committed
fix(flake): flake was complaining only on travis
1 parent 942ae69 commit 8386561

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

rootfs/scheduler/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,10 @@ def _create_rc(self, name, image, command, **kwargs): # noqa
664664
continue
665665
create = True
666666
rc = self._get_rc(name, app_name)
667-
if ("observedGeneration" in rc["status"]
668-
and rc["metadata"]["generation"] == rc["status"]["observedGeneration"]):
667+
if (
668+
"observedGeneration" in rc["status"] and
669+
rc["metadata"]["generation"] == rc["status"]["observedGeneration"]
670+
):
669671
break
670672

671673
time.sleep(1)

0 commit comments

Comments
 (0)