Skip to content

Commit

Permalink
fix: malformed output from ctx.getStatus() (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Jun 14, 2018
1 parent 5362c33 commit d222721
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugin-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,15 +486,15 @@ export function createPluginContext(garden: Garden): PluginContext {

getStatus: async () => {
const envStatus: EnvironmentStatusMap = await ctx.getEnvironmentStatus({})
const services = await ctx.getServices()
const services = keyBy(await ctx.getServices(), "name")

const serviceStatus = await Bluebird.map(
services, (service: Service<any>) => ctx.getServiceStatus({ serviceName: service.name }),
)
const serviceStatus = await Bluebird.props(mapValues(services,
(service: Service<any>) => ctx.getServiceStatus({ serviceName: service.name }),
))

return {
providers: envStatus,
services: keyBy(serviceStatus, "name"),
services: serviceStatus,
}
},

Expand Down

0 comments on commit d222721

Please sign in to comment.