Completed
Pull Request — master (#342)
by Tomaz
02:50
created

ResultSets   A

Complexity

Total Complexity 19

Size/Duplication

Total Lines 45
Duplicated Lines 0 %
Metric Value
dl 0
loc 45
rs 10
wmc 19

4 Methods

Rating   Name   Duplication   Size   Complexity  
A formatter() 0 8 3
A _getval() 0 2 1
F selector() 0 27 13
A parse() 0 3 2
1
from lib.base import AzureBaseStorageAction
2
from lib.formatters import to_object_dict
3
4
5
class AzureListContainerObjectsAction(AzureBaseStorageAction):
6
    def run(self, name):
7
        container = self._driver.get_container(container_name=name)
8
        objects = self._driver.list_container_objects(container=container)
9
        objects = [to_object_dict(obj) for obj in objects]
10
        return objects
11