From 5246732e06e2b3200ddd809e8624ab01538874af Mon Sep 17 00:00:00 2001 From: Akshat Sinha Date: Sun, 14 Dec 2025 21:30:51 +0530 Subject: [PATCH] Fix(discovery/aws): Added SetDirectory method to EC2SDConfig. Signed-off-by: Akshat Sinha --- discovery/aws/ec2.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discovery/aws/ec2.go b/discovery/aws/ec2.go index 0aae35d75d..29152c1ed0 100644 --- a/discovery/aws/ec2.go +++ b/discovery/aws/ec2.go @@ -116,6 +116,11 @@ func (c *EC2SDConfig) NewDiscoverer(opts discovery.DiscovererOptions) (discovery return NewEC2Discovery(c, opts) } +// SetDirectory joins any relative file paths with dir. +func (c *EC2SDConfig) SetDirectory(dir string) { + c.HTTPClientConfig.SetDirectory(dir) +} + // UnmarshalYAML implements the yaml.Unmarshaler interface for the EC2 Config. func (c *EC2SDConfig) UnmarshalYAML(unmarshal func(any) error) error { *c = DefaultEC2SDConfig