Skip to content

Commit

Permalink
Merge branch 'master' into fix_1537
Browse files Browse the repository at this point in the history
  • Loading branch information
kumada626 authored Apr 25, 2019
2 parents 3ac219a + 8d28020 commit 3aea0a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/server
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const multiBuildClusterEnabled = config.get('multiBuildCluster').enabled;
const datastoreConfig = config.get('datastore');
const DatastorePlugin = require(`screwdriver-datastore-${datastoreConfig.plugin}`);

const datastorePluginConfig = datastoreConfig[datastoreConfig.plugin];
const datastorePluginConfig = Object.assign({}, datastoreConfig[datastoreConfig.plugin]);

// Readonly Datastore
const datastoreROConfig = datastorePluginConfig.readOnly;
Expand All @@ -46,7 +46,7 @@ delete datastorePluginConfig.readOnly;

// Default datastore
const datastore = new DatastorePlugin(hoek.applyToDefaults({ ecosystem },
(datastoreConfig[datastoreConfig.plugin] || {})));
(datastorePluginConfig || {})));

// Source Code Plugin
const scmConfig = { scms: config.get('scms') };
Expand Down

0 comments on commit 3aea0a7

Please sign in to comment.