Completed
Push — master ( 982099...38894f )
by
unknown
02:39
created

VtmDrainNodes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 10
c 2
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
#! /usr/bin/python
2
3
from st2actions.runners.pythonrunner import Action
4
from lib.vadc import Vtm
5
6
7
class VtmDrainNodes(Action):
8
9
    def run(self, vtm, pool, nodes, drain):
10
11
        vtm = Vtm(self.config, self.logger, vtm)
12
        vtm.drainNodes(pool, nodes, drain)
13