Skip to content

Commit

Permalink
Fix error: Support storage account in converter.go.
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche committed Feb 18, 2025
1 parent 12dbc96 commit 008f813
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func toResourceType(service analyzer.Service) (project.ResourceType, error) {
return project.ResourceTypeDbMongo, nil
case analyzer.AzureServiceBus:
return project.ResourceTypeMessagingServiceBus, nil
case analyzer.AzureStorageAccount:
return project.ResourceTypeStorage, nil
default:
return "", fmt.Errorf("unknown service type: %v", service)
}
Expand All @@ -88,6 +90,10 @@ func toProps(service analyzer.Service) (interface{}, error) {
return project.EventHubsProps{
Hubs: s.Hubs,
}, nil
case analyzer.AzureStorageAccount:
return project.StorageProps{
Containers: s.Containers,
}, nil
default:
return "", fmt.Errorf("unknown service type when get Props: %v", service)
}
Expand Down

0 comments on commit 008f813

Please sign in to comment.