command: remove Meta.forceProviderSHA256s

This was added with the idea of using it to override the SHA256 hashes
to match those hypothetically stored in a plan, but we already have a
mechanism elsewhere for populating context fields from plan fields, so
this is not actually necessary.
This commit is contained in:
Martin Atkins 2017-06-05 16:37:08 -07:00
parent 9aae06db97
commit 4571a16b15
1 changed files with 1 additions and 10 deletions

View File

@ -50,11 +50,6 @@ type Meta struct {
// Override certain behavior for tests within this package
testingOverrides *testingOverrides
// Override the set of provider plugin SHA256 digests we expect.
// If this is nil we will instead read from the provider lock file
// when setting up ContextOpts.
forceProviderSHA256s map[string][]byte
//----------------------------------------------------------
// Private: do not set these
//----------------------------------------------------------
@ -249,11 +244,7 @@ func (m *Meta) contextOpts() *terraform.ContextOpts {
opts.Provisioners = m.provisionerFactories()
}
if m.forceProviderSHA256s != nil {
opts.ProviderSHA256s = m.forceProviderSHA256s
} else {
opts.ProviderSHA256s = m.providerPluginsLock().Read()
}
opts.ProviderSHA256s = m.providerPluginsLock().Read()
opts.Meta = &terraform.ContextMeta{
Env: m.Env(),