Fix CoreOS logrotate service failure.

This commit is contained in:
Kashif Saadat 2017-11-13 10:16:16 +00:00
parent cbe72dc44a
commit 1fdbbecce1
1 changed files with 1 additions and 2 deletions

View File

@ -89,8 +89,7 @@ func (b *LogrotateBuilder) Build(c *fi.ModelBuilderContext) error {
// addLogrotateService creates a logrotate systemd task to act as target for the timer, if one is needed
func (b *LogrotateBuilder) addLogrotateService(c *fi.ModelBuilderContext) error {
switch b.Distribution {
case distros.DistributionCoreOS:
case distros.DistributionContainerOS:
case distros.DistributionCoreOS, distros.DistributionContainerOS:
// logrotate service already exists
return nil
}