1
1
mirror of https://github.com/adammck/terraform-inventory synced 2024-11-23 00:12:13 +01:00

Change TERRAFORM_INVENTORY_KEYNAME to TF_KEY_NAME

This commit is contained in:
anarcher 2016-02-18 00:37:51 +09:00
parent 36d30f6d40
commit 4f18a4b350

@ -134,7 +134,7 @@ func (r Resource) NameWithCounter() string {
// Address returns the IP address of this resource. // Address returns the IP address of this resource.
func (r Resource) Address() string { func (r Resource) Address() string {
if keyName := os.Getenv("TERRAFORM_INVENTORY_KEYNAME"); keyName != "" { if keyName := os.Getenv("TF_KEY_NAME"); keyName != "" {
if ip := r.State.Primary.Attributes[keyName]; ip != "" { if ip := r.State.Primary.Attributes[keyName]; ip != "" {
return ip return ip
} }