This includes a few changes: * The repo name -- and hence the Go modules -- changes from pulumi-fabric to pulumi. * The Node.js SDK package changes from @pulumi/pulumi-fabric to just pulumi. * The CLI is renamed from lumi to pulumi.
26 lines
574 B
Go
26 lines
574 B
Go
// Copyright 2017, Pulumi Corporation. All rights reserved.
|
|
|
|
package engine
|
|
|
|
import (
|
|
"github.com/pkg/errors"
|
|
"github.com/pulumi/pulumi/pkg/tokens"
|
|
)
|
|
|
|
func (eng *Engine) DeleteConfig(envName string, key tokens.ModuleMember) error {
|
|
info, err := eng.initEnvCmdName(tokens.QName(envName), "")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
config := info.Target.Config
|
|
|
|
if config != nil {
|
|
delete(config, key)
|
|
|
|
if err = eng.Environment.SaveEnvironment(info.Target, info.Snapshot); err != nil {
|
|
return errors.Wrap(err, "could not save configuration value")
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|