Fix getResourceManagementScheduler for non-autoscaling configs

This commit is contained in:
Gian Merlino 2013-08-20 13:39:05 -07:00
parent 25e330780c
commit b102d67173
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ public class TaskMasterLifecycle
public Optional<ResourceManagementScheduler> getResourceManagementScheduler()
{
if (leading) {
return Optional.of(resourceManagementScheduler);
return Optional.fromNullable(resourceManagementScheduler);
} else {
return Optional.absent();
}