Skip to content

Commit

Permalink
Add missing locking in MockEC2
Browse files Browse the repository at this point in the history
  • Loading branch information
johngmyers committed Aug 5, 2020
1 parent 0ee7de9 commit ae772c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudmock/aws/mockec2/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func (m *MockEC2) DescribeImagesWithContext(aws.Context, *ec2.DescribeImagesInpu
}

func (m *MockEC2) DescribeImages(request *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error) {
m.mutex.Lock()
defer m.mutex.Unlock()

klog.Infof("DescribeImages: %v", request)

var images []*ec2.Image
Expand Down

0 comments on commit ae772c3

Please sign in to comment.