| Total Complexity | 2 | 
| Total Lines | 11 | 
| Duplicated Lines | 0 % | 
| 1 | from azure.mgmt.resource.resources import (  | 
            ||
| 7 | class ListResourceGroupsAction(AzureBaseResourceManagerAction):  | 
            ||
| 8 | def run(self, subscription_id):  | 
            ||
| 9 | credentials = self.credentials  | 
            ||
| 10 | |||
| 11 | resource_client = ResourceManagementClient(  | 
            ||
| 12 | ResourceManagementClientConfiguration(  | 
            ||
| 13 | credentials,  | 
            ||
| 14 | subscription_id))  | 
            ||
| 15 | |||
| 16 | resource_groups = resource_client.resource_groups.list()  | 
            ||
| 17 | return [group.name for group in resource_groups]  | 
            ||
| 18 |