Conditions | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
1 | from lib import action |
||
10 | def run(self, **kwargs): |
||
11 | # remove the immutable action_name from the kwargs |
||
12 | action = kwargs['method_name'] |
||
13 | del kwargs['method_name'] |
||
14 | |||
15 | # Get an instance of the API Client |
||
16 | conn = self.get_connection() |
||
17 | |||
18 | # Call the method and include the params from the YAML as kwargs |
||
19 | return self._do_function(conn, action, **kwargs) |