Skip to content

Commit

Permalink
Fix two broken require statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Feb 26, 2020
1 parent ba77d2b commit 8ef4b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/goal/container/container.ts
Expand Up @@ -295,10 +295,10 @@ export class Container extends FulfillableGoalWithRegistrations<ContainerRegistr
registration.name = (registration.name || `container-${this.definition.displayName}`).replace(/\.+/g, "-");
if (!this.details.scheduler) {
if (runningInK8s()) {
const k8sContainerScheduler = require("../../pack/k8s/container/k8s").k8sContainerScheduler;
const k8sContainerScheduler = require("../../pack/k8s/container").k8sContainerScheduler;
this.details.scheduler = k8sContainerScheduler;
} else if (runningAsGoogleCloudFunction()) {
const k8sSkillContainerScheduler = require("../../pack/k8s/container/k8s").k8sSkillContainerScheduler;
const k8sSkillContainerScheduler = require("../../pack/k8s/container").k8sSkillContainerScheduler;
this.details.scheduler = k8sSkillContainerScheduler;
} else {
this.details.scheduler = dockerContainerScheduler;
Expand Down

0 comments on commit 8ef4b99

Please sign in to comment.