Skip to content

Commit 29f2b40

Browse files
author
Gabriel Monroy
committed
fix(controller): alter logic on container creation
1 parent 4bdfcb3 commit 29f2b40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/scheduler/coreos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _put_unit(self, name, body):
5454
headers=headers, body=json.dumps(body))
5555
resp = self.conn.getresponse()
5656
data = resp.read()
57-
if 200 <= resp.status <= 299:
57+
if not 200 <= resp.status <= 299:
5858
errmsg = "Failed to create unit: {} {} - {}".format(
5959
resp.status, resp.reason, data)
6060
raise RuntimeError(errmsg)

0 commit comments

Comments
 (0)