Completed
Pull Request — master (#420)
by Anthony
02:14
created

ListVMsAction   A

Complexity

Total Complexity 1

Size/Duplication

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 8 1
1
from lib import actions
2
3
__all__ = [
4
    'ListVMsAction',
5
]
6
7
8
class ListVMsAction(actions.BaseAction):
9
10
    def run(self, **kwargs):
11
        action = kwargs['action']
12
        del kwargs['action']
13
        region = kwargs['region']
14
        del kwargs['region']
15
        driver = self._get_compute_driver(region)
16
        kwargs['ex_location'] = str(kwargs['ex_location'])
17
        return self._do_function(driver, action, **kwargs)
18