AMI ID is potentally non-unique

Changed the keys map to reflect that.
This commit is contained in:
Charlie Voiselle 2017-08-09 12:53:54 -04:00
parent 46365ef22f
commit ae466eaaa7

View file

@ -95,7 +95,7 @@ func (f *EnvAWSFingerprint) Fingerprint(cfg *config.Config, node *structs.Node)
// uniquely identifies a node, such as ip, should be marked as unique. When
// marked as unique, the key isn't included in the computed node class.
keys := map[string]bool{
"ami-id": true,
"ami-id": false,
"hostname": true,
"instance-id": true,
"instance-type": false,