Skip to content

Commit ebeab96

Browse files
author
Matthew Fisher
committed
fix(scheduler): allow proctypes with dashes and underscores
1 parent 78eb4ec commit ebeab96

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

controller/scheduler/coreos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
MATCH = re.compile(
14-
'(?P<app>[a-z0-9-]+)_?(?P<version>v[0-9]+)?\.?(?P<c_type>[a-z]+)?.(?P<c_num>[0-9]+)')
14+
'(?P<app>[a-z0-9-]+)_?(?P<version>v[0-9]+)?\.?(?P<c_type>[a-z-_]+)?.(?P<c_num>[0-9]+)')
1515

1616

1717
class UHTTPConnection(httplib.HTTPConnection):

logger/syslogd/syslogd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func fileExists(path string) (bool, error) {
4646
}
4747

4848
func getLogFile(m *syslog.Message) (io.Writer, error) {
49-
r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9\.]+\].*`)
49+
r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9-_\.]+\].*`)
5050
match := r.FindStringSubmatch(m.String())
5151
if match == nil {
5252
return nil, fmt.Errorf("Could not find app name in message", m.String())

0 commit comments

Comments
 (0)