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

Terraform plugin fails to describe instance by tag #495

Merged
merged 1 commit into from
Apr 28, 2017

Conversation

kaufers
Copy link
Contributor

@kaufers kaufers commented Apr 28, 2017

The terraform instance plugin's DescribeInstances function may fail if there are multiple groups. The resources types are parsed from the .tf.json files and stored in a map key'd by the resource type. During the tag match filtering, if a tag does not match then (currently) no other resources of the same type are processed.

This is exposed when there are multiple groups since the group name is included in a tag.

Closes #493

Signed-off-by: Steven Kaufer kaufer@us.ibm.com

The terraform instance plugin's `DescribeInstances` function may fail
if there are multiple groups. The resources types are parsed from the
.tf.json files and stored in a map key'd by the resource type. During
the tag match filtering, if a tag does not match then (currently) no
other resources of the same type are processed.

This is exposed when there are multiple groups since the group name is
included in a tag.

Closes docker-archive#493

Signed-off-by: Steven Kaufer <kaufer@us.ibm.com>
@codecov
Copy link

codecov bot commented Apr 28, 2017

Codecov Report

Merging #495 into master will decrease coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #495      +/-   ##
==========================================
- Coverage   57.64%   57.51%   -0.13%     
==========================================
  Files          32       57      +25     
  Lines        2014     3771    +1757     
==========================================
+ Hits         1161     2169    +1008     
- Misses        710     1323     +613     
- Partials      143      279     +136
Impacted Files Coverage Δ
examples/instance/terraform/plugin.go 61.83% <100%> (+1.76%) ⬆️
pkg/rpc/mux/reverse_proxy.go 39.43% <0%> (ø)
pkg/template/defaults.go 71.42% <0%> (ø)
pkg/types/hierarchy.go 80% <0%> (ø)
pkg/types/path.go 84.8% <0%> (ø)
pkg/util/etcd/v3/etcd.go 28.57% <0%> (ø)
pkg/types/object.go 77.77% <0%> (ø)
pkg/types/reflect.go 73.64% <0%> (ø)
pkg/store/swarm/swarm.go 67.27% <0%> (ø)
pkg/spi/event/types.go 64.1% <0%> (ø)
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce06e23...ce18405. Read the comment docs.

Copy link
Contributor

@chungers chungers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@chungers chungers merged commit 436005a into docker-archive:master Apr 28, 2017
@kaufers kaufers deleted the multiple-groups branch June 16, 2017 13:06
chungers pushed a commit to chungers/infrakit that referenced this pull request Sep 30, 2017
Always upload a latest.json for all channels
chungers pushed a commit to chungers/infrakit that referenced this pull request Oct 1, 2017
Always upload a latest.json for all channels
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants