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

BalancerDeleteNodeAction.run()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 4
rs 10
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