ec2/ec2test: handle "tag:" filter for volumes #56

Merged
merged 1 commit into from Jul 22, 2015

Conversation

Projects
None yet
2 participants
Member

axw commented Jul 22, 2015

Handle the "tag:key=value" type filter for
volumes. This is required for Juju to be able
to list volumes belonging to an environment.

ec2/volumes_test.go
+
+ filter := ec2.NewFilter()
+ filter.Add("tag:key", "value")
+ resp, err := s.ec2.Volumes(nil, filter)
@wallyworld

wallyworld Jul 22, 2015

Member

maybe also a check that the volume fails to match the filter before the tags are added

@axw

axw Jul 22, 2015

Member

Done

Member

wallyworld commented Jul 22, 2015

LGTM

ec2/ec2test: handle "tag:" filter for volumes
Handle the "tag:key=value" type filter for
volumes. This is required for Juju to be able
to list volumes belonging to an environment.

axw added a commit that referenced this pull request Jul 22, 2015

Merge pull request #56 from axw/ec2test-volumes-filter-tag
ec2/ec2test: handle "tag:" filter for volumes

@axw axw merged commit 6b2122e into go-amz:v3 Jul 22, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment