Commit 4da6926b authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

trivial fix

parent b77a031a
......@@ -532,7 +532,6 @@ class PushManager(Manager):
with ses.begin():
# get the version object and check its state
version = ses.query(WebappVersion).filter_by(id=version_id).one()
print("version id %d state %r" % (, version.state))
if version.state != VersionState.committed:
if version.state == VersionState.ready:
# already pushed
......@@ -554,7 +553,7 @@ class PushManager(Manager):
image = self.ctrl.gen_image_name(version.webapp)
tag = version.number"push from the %-8s %s:%s", "sandbox", image, version)"push from the %-8s %s:%s", "sandbox", image, tag)
yield from self.run_in_executor(docker_check_error, self.ctrl.sandbox.push, image, tag)
with ses.begin():
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment