Completed
Pull Request — master (#415)
by Anthony
02:06
created

BalancerDeleteNodeAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %
Metric Value
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
from lib.actions import BaseAction
2
3
__all__ = [
4
    'BalancerDeleteNodeAction'
5
]
6
7
8
class BalancerDeleteNodeAction(BaseAction):
9
    api_type = 'loadbalancer'
10
11
    def run(self, region, node_id):
12
        driver = self._get_lb_driver(region)
13
        record = driver.ex_destroy_node(node_id)
14
        return self.resultsets.formatter(record)
15