Skip to content

Commit bda1ed0

Browse files
committed
fix(scheduler/coreos): correct announce container logic for process types
Previously, the logger and proctype comparison logic were incorrect.
1 parent f773cde commit bda1ed0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controller/scheduler/coreos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def create(self, name, image, command='', template=None):
5858
self._create_log(name, image, command, LOG_TEMPLATE, env)
5959

6060
# only announce web and cmd processes
61-
if command.lower() in ['web', 'cmd']:
61+
if command.lower() in ['start web', '']:
6262
self._create_announcer(name, image, command, ANNOUNCE_TEMPLATE, env)
6363
else:
64-
logger.info '-- skipping announcer for '+name+ '('+command+')'
64+
print "-- skipping announcer for {} - cmd type is {}".format(name,command)
6565

6666
def _create_container(self, name, image, command, template, env):
6767
l = locals().copy()

0 commit comments

Comments
 (0)