Cloudwatch: Fix LaunchTime attribute tag bug (#20237)
* Cast tags of type Time to string * Fig go lint issue
This commit is contained in:
1 parent
e03d702d0c
commit
359416b89f
1 file changed
+2
@@ -550,6 +550,8 @@ func (e *CloudWatchExecutor) handleGetEc2InstanceAttribute(ctx context.Context,
|
||||
}
|
||||
if attr, ok := v.Interface().(*string); ok {
|
||||
data = *attr
|
||||
} else if attr, ok := v.Interface().(*time.Time); ok {
|
||||
data = (*attr).String()
|
||||
} else {
|
||||
return nil, errors.New("invalid attribute path")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user