use resource_name instead of name

Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
pull/35512/head
Daniel Schmidt 2 years ago
parent df85a22343
commit c693c39677
No known key found for this signature in database
GPG Key ID: 377C3A4D62FBBBE2

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…
Cancel
Save