Completed
Pull Request — master (#348)
by Tomaz
02:21
created

ResultSets.formatter()   A

Complexity

Conditions 3

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 3
dl 0
loc 8
rs 9.4286
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