terraform: fix compilation from merge
This commit is contained in:
parent
0d1867c0b3
commit
4b3473e522
|
@ -551,8 +551,8 @@ func (c *walkContext) applyWalkFn() depgraph.WalkFunc {
|
||||||
// was an error during the provider apply.
|
// was an error during the provider apply.
|
||||||
tainted := false
|
tainted := false
|
||||||
if applyerr == nil && createNew && len(r.Provisioners) > 0 {
|
if applyerr == nil && createNew && len(r.Provisioners) > 0 {
|
||||||
for _, h := range c.hooks {
|
for _, h := range c.Context.hooks {
|
||||||
handleHook(h.PreProvisionResource(r.Id, is))
|
handleHook(h.PreProvisionResource(r.Info, is))
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := c.applyProvisioners(r, is); err != nil {
|
if err := c.applyProvisioners(r, is); err != nil {
|
||||||
|
|
|
@ -797,7 +797,7 @@ func TestContextApply_provisionerResourceRef(t *testing.T) {
|
||||||
|
|
||||||
// Provisioner should NOT run on a diff, only create
|
// Provisioner should NOT run on a diff, only create
|
||||||
func TestContextApply_Provisioner_Diff(t *testing.T) {
|
func TestContextApply_Provisioner_Diff(t *testing.T) {
|
||||||
c := testConfig(t, "apply-provisioner-diff")
|
m := testModule(t, "apply-provisioner-diff")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
pr := testProvisioner()
|
pr := testProvisioner()
|
||||||
p.ApplyFn = testApplyFn
|
p.ApplyFn = testApplyFn
|
||||||
|
@ -806,7 +806,7 @@ func TestContextApply_Provisioner_Diff(t *testing.T) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
ctx := testContext(t, &ContextOpts{
|
ctx := testContext(t, &ContextOpts{
|
||||||
Config: c,
|
Module: m,
|
||||||
Providers: map[string]ResourceProviderFactory{
|
Providers: map[string]ResourceProviderFactory{
|
||||||
"aws": testProviderFuncFixed(p),
|
"aws": testProviderFuncFixed(p),
|
||||||
},
|
},
|
||||||
|
@ -842,7 +842,7 @@ func TestContextApply_Provisioner_Diff(t *testing.T) {
|
||||||
|
|
||||||
// Re-create context with state
|
// Re-create context with state
|
||||||
ctx = testContext(t, &ContextOpts{
|
ctx = testContext(t, &ContextOpts{
|
||||||
Config: c,
|
Module: m,
|
||||||
Providers: map[string]ResourceProviderFactory{
|
Providers: map[string]ResourceProviderFactory{
|
||||||
"aws": testProviderFuncFixed(p),
|
"aws": testProviderFuncFixed(p),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue