use the new Meta.ShutdownCh when building commands
This commit is contained in:
parent
3aaa1e9d04
commit
6884a07bba
|
@ -63,6 +63,8 @@ func initCommands(config *Config) {
|
|||
RunningInAutomation: inAutomation,
|
||||
PluginCacheDir: config.PluginCacheDir,
|
||||
OverrideDataDir: dataDir,
|
||||
|
||||
ShutdownCh: makeShutdownCh(),
|
||||
}
|
||||
|
||||
// The command list is included in the terraform -help
|
||||
|
@ -81,14 +83,12 @@ func initCommands(config *Config) {
|
|||
"apply": func() (cli.Command, error) {
|
||||
return &command.ApplyCommand{
|
||||
Meta: meta,
|
||||
ShutdownCh: makeShutdownCh(),
|
||||
}, nil
|
||||
},
|
||||
|
||||
"console": func() (cli.Command, error) {
|
||||
return &command.ConsoleCommand{
|
||||
Meta: meta,
|
||||
ShutdownCh: makeShutdownCh(),
|
||||
}, nil
|
||||
},
|
||||
|
||||
|
@ -96,7 +96,6 @@ func initCommands(config *Config) {
|
|||
return &command.ApplyCommand{
|
||||
Meta: meta,
|
||||
Destroy: true,
|
||||
ShutdownCh: makeShutdownCh(),
|
||||
}, nil
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue