Completed
Pull Request — master (#544)
by
unknown
09:52 queued 03:16
created

AzureCreateContainerAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1
1
from lib.base import AzureBaseStorageAction
2
from lib.formatters import to_container_dict
3
4
5
class AzureCreateContainerAction(AzureBaseStorageAction):
6
    def run(self, name):
7
        container = self._driver.create_container(container_name=name)
8
        container = to_container_dict(container)
9
        return container
10