mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
use resource_name instead of name
Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
This commit is contained in:
parent
df85a22343
commit
c693c39677
4 changed files with 733 additions and 732 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -882,7 +882,7 @@ message PlannedChange {
|
|||
|
||||
repeated AttributePath replace_paths = 11;
|
||||
|
||||
string name = 12;
|
||||
string resource_name = 12;
|
||||
DynamicValue index = 13;
|
||||
string module_addr = 14;
|
||||
string action_reason = 15;
|
||||
|
|
|
|||
|
|
@ -399,7 +399,7 @@ func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1
|
|||
Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstancePlanned{
|
||||
ResourceInstancePlanned: &terraform1.PlannedChange_ResourceInstance{
|
||||
Addr: terraform1.NewResourceInstanceObjectInStackAddr(rioAddr),
|
||||
Name: pc.ChangeSrc.Addr.Resource.Resource.Name,
|
||||
ResourceName: pc.ChangeSrc.Addr.Resource.Resource.Name,
|
||||
Index: index,
|
||||
ModuleAddr: pc.ChangeSrc.Addr.Module.String(),
|
||||
ResourceMode: stackutils.ResourceModeForProto(pc.ChangeSrc.Addr.Resource.Resource.Mode),
|
||||
|
|
|
|||
|
|
@ -295,8 +295,8 @@ func TestPlannedChangeAsProto(t *testing.T) {
|
|||
Index: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\x01'}, // 1
|
||||
},
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
Name: "wotsit",
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
ResourceName: "wotsit",
|
||||
Values: &terraform1.DynamicValueChange{
|
||||
Old: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\xc0'}, // null
|
||||
|
|
@ -397,8 +397,8 @@ func TestPlannedChangeAsProto(t *testing.T) {
|
|||
Index: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\x01'}, // 1
|
||||
},
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
Name: "wotsit",
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
ResourceName: "wotsit",
|
||||
Values: &terraform1.DynamicValueChange{
|
||||
Old: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\xc0'}, // null
|
||||
|
|
@ -506,8 +506,8 @@ func TestPlannedChangeAsProto(t *testing.T) {
|
|||
Index: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\x01'}, // 1
|
||||
},
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
Name: "wotsit",
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
ResourceName: "wotsit",
|
||||
Values: &terraform1.DynamicValueChange{
|
||||
Old: &terraform1.DynamicValue{
|
||||
Msgpack: []byte("\x81\xa3foo\xa3bar"),
|
||||
|
|
@ -616,8 +616,8 @@ func TestPlannedChangeAsProto(t *testing.T) {
|
|||
Index: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\x01'}, // 1
|
||||
},
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
Name: "wotsit",
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
ResourceName: "wotsit",
|
||||
Values: &terraform1.DynamicValueChange{
|
||||
Old: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\x80'}, // zero-length mapping
|
||||
|
|
@ -721,8 +721,8 @@ func TestPlannedChangeAsProto(t *testing.T) {
|
|||
Index: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\x01'}, // 1
|
||||
},
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
Name: "wotsit",
|
||||
ModuleAddr: `module.pizza["chicken"]`,
|
||||
ResourceName: "wotsit",
|
||||
Values: &terraform1.DynamicValueChange{
|
||||
Old: &terraform1.DynamicValue{
|
||||
Msgpack: []byte{'\x80'}, // zero-length mapping
|
||||
|
|
|
|||
Loading…
Reference in a new issue