Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

terraform plugin fails to describe instance by tag #493

@kaufers

Description

@kaufers

The terraform instance plugin's DescribeInstances may fail if there are multiple groups. During the tag checking, if a tag does not match then the following is executed:

							continue scan

This is tied to an outer for loop:

	// now we scan for <instance_type.instance-<timestamp> as keys
scan:
	for t, vm := range localSpecs {

		for k, v := range vm {
			matches := re.FindStringSubmatch(string(k))

The other loops is a 2D array with the resource type as the 0th element. This element will be the resource type; if this outer for loop is continued then all of the elements of the same resource type are not processed.

The fix is to move the scan: declaration to the next for loop so all of the resources are processed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions