mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
Cloudwatch: Fix LaunchTime attribute tag bug (#20237)
* Cast tags of type Time to string * Fig go lint issue
This commit is contained in:
parent
e03d702d0c
commit
359416b89f
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user