mirror of
https://github.com/adammck/terraform-inventory
synced 2024-11-23 00:12:13 +01:00
Prefix resource type groups with 'type_'
This commit is contained in:
parent
b8a9261d05
commit
1a3b5c180c
@ -137,11 +137,11 @@ const expectedListOutput = `
|
||||
"five.0": ["10.20.30.40"],
|
||||
"six.0": ["10.120.0.226"],
|
||||
|
||||
"aws_instance": ["10.0.0.1", "10.0.1.1", "50.0.0.1"],
|
||||
"digitalocean_droplet": ["192.168.0.3"],
|
||||
"cloudstack_instance": ["10.2.1.5"],
|
||||
"vsphere_virtual_machine": ["10.20.30.40"],
|
||||
"openstack_compute_instance_v2": ["10.120.0.226"],
|
||||
"type_aws_instance": ["10.0.0.1", "10.0.1.1", "50.0.0.1"],
|
||||
"type_digitalocean_droplet": ["192.168.0.3"],
|
||||
"type_cloudstack_instance": ["10.2.1.5"],
|
||||
"type_vsphere_virtual_machine": ["10.20.30.40"],
|
||||
"type_openstack_compute_instance_v2": ["10.120.0.226"],
|
||||
|
||||
"role_web": ["10.0.0.1"]
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ func (r Resource) Groups() []string {
|
||||
groups := []string{
|
||||
r.baseName,
|
||||
r.NameWithCounter(),
|
||||
r.resourceType,
|
||||
fmt.Sprintf("type_%s", r.resourceType),
|
||||
}
|
||||
|
||||
for k, v := range r.Tags() {
|
||||
|
Loading…
Reference in New Issue
Block a user