Skip to content

Commit f8a2ac1

Browse files
author
Gabriel Monroy
committed
we need to check for > 0 runtime _nodes_, not just a runtime layer #42
1 parent 0abdacf commit f8a2ac1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def push(cls, push):
711711
formation=formation,
712712
user=user)
713713
# see if we need to scale an initial web container
714-
if len(formation.layer_set.filter(id='runtime')) > 0 and \
714+
if len(formation.node_set.filter(layer__id='runtime')) > 0 and \
715715
len(formation.container_set.filter(type='web')) < 1:
716716
# scale an initial web containers
717717
formation.containers['web'] = 1

0 commit comments

Comments
 (0)