@@ -1543,17 +1543,19 @@ func TestMetaBackend_planLocal(t *testing.T) {
1543
1543
if err != nil {
1544
1544
t .Fatal (err )
1545
1545
}
1546
- backendConfig := plans.Backend {
1547
- Type : "local" ,
1548
- Config : backendConfigRaw ,
1549
- Workspace : "default" ,
1546
+ plan := & plans.Plan {
1547
+ Backend : plans.Backend {
1548
+ Type : "local" ,
1549
+ Config : backendConfigRaw ,
1550
+ Workspace : "default" ,
1551
+ },
1550
1552
}
1551
1553
1552
1554
// Setup the meta
1553
1555
m := testMetaBackend (t , nil )
1554
1556
1555
1557
// Get the backend
1556
- b , diags := m .BackendForLocalPlan (backendConfig )
1558
+ b , diags := m .BackendForLocalPlan (plan )
1557
1559
if diags .HasErrors () {
1558
1560
t .Fatal (diags .Err ())
1559
1561
}
@@ -1634,10 +1636,12 @@ func TestMetaBackend_planLocalStatePath(t *testing.T) {
1634
1636
if err != nil {
1635
1637
t .Fatal (err )
1636
1638
}
1637
- plannedBackend := plans.Backend {
1638
- Type : "local" ,
1639
- Config : backendConfigRaw ,
1640
- Workspace : "default" ,
1639
+ plan := & plans.Plan {
1640
+ Backend : plans.Backend {
1641
+ Type : "local" ,
1642
+ Config : backendConfigRaw ,
1643
+ Workspace : "default" ,
1644
+ },
1641
1645
}
1642
1646
1643
1647
// Create an alternate output path
@@ -1654,7 +1658,7 @@ func TestMetaBackend_planLocalStatePath(t *testing.T) {
1654
1658
m .stateOutPath = statePath
1655
1659
1656
1660
// Get the backend
1657
- b , diags := m .BackendForLocalPlan (plannedBackend )
1661
+ b , diags := m .BackendForLocalPlan (plan )
1658
1662
if diags .HasErrors () {
1659
1663
t .Fatal (diags .Err ())
1660
1664
}
@@ -1733,17 +1737,19 @@ func TestMetaBackend_planLocalMatch(t *testing.T) {
1733
1737
if err != nil {
1734
1738
t .Fatal (err )
1735
1739
}
1736
- backendConfig := plans.Backend {
1737
- Type : "local" ,
1738
- Config : backendConfigRaw ,
1739
- Workspace : "default" ,
1740
+ plan := & plans.Plan {
1741
+ Backend : plans.Backend {
1742
+ Type : "local" ,
1743
+ Config : backendConfigRaw ,
1744
+ Workspace : "default" ,
1745
+ },
1740
1746
}
1741
1747
1742
1748
// Setup the meta
1743
1749
m := testMetaBackend (t , nil )
1744
1750
1745
1751
// Get the backend
1746
- b , diags := m .BackendForLocalPlan (backendConfig )
1752
+ b , diags := m .BackendForLocalPlan (plan )
1747
1753
if diags .HasErrors () {
1748
1754
t .Fatal (diags .Err ())
1749
1755
}
0 commit comments