Skip to content

Commit

Permalink
replace timedata too.
Browse files Browse the repository at this point in the history
  • Loading branch information
preslavgerchev committed Feb 17, 2024
1 parent b32b109 commit c29e6ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion providers/azure/resources/keyvault.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (a *mqlAzureSubscriptionKeyVaultServiceKey) versions() ([]interface{}, erro
for _, entry := range page.Value {
mqlAzure, err := CreateResource(a.MqlRuntime, "azure.subscription.keyVaultService.key",
map[string]*llx.RawData{
"kid": llx.StringData(convert.ToString((*string)(entry.KID))),
"kid": llx.StringDataPtr((*string)(entry.KID)),
"managed": llx.BoolDataPtr(entry.Managed),
"tags": llx.MapData(convert.PtrMapStrToInterface(entry.Tags), types.String),
"enabled": llx.BoolDataPtr(entry.Attributes.Enabled),
Expand Down
4 changes: 2 additions & 2 deletions providers/azure/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func (a *mqlAzureSubscription) resources() ([]interface{}, error) {
"plan": llx.DictData(plan),
"identity": llx.DictData(identity),
"provisioningState": llx.StringDataPtr(resource.ProvisioningState),
"createdTime": llx.TimeData(*resource.CreatedTime),
"changedTime": llx.TimeData(*resource.ChangedTime),
"createdTime": llx.TimeDataPtr(resource.CreatedTime),
"changedTime": llx.TimeDataPtr(resource.ChangedTime),
})
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/azure/resources/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (a *mqlAzureSubscriptionSqlServiceServer) databases() ([]interface{}, error
"name": llx.StringDataPtr(entry.Name),
"type": llx.StringDataPtr(entry.Type),
"collation": llx.StringDataPtr(entry.Properties.Collation),
"creationDate": llx.TimeData(*entry.Properties.CreationDate),
"creationDate": llx.TimeDataPtr(entry.Properties.CreationDate),
"databaseId": llx.StringDataPtr(entry.Properties.DatabaseID),
"createMode": llx.StringData(convert.ToString((*string)(entry.Properties.CreateMode))),
"sourceDatabaseId": llx.StringDataPtr(entry.Properties.SourceDatabaseID),
Expand Down

0 comments on commit c29e6ca

Please sign in to comment.