Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
1 | #!/usr/bin/env python |
||
29 | class ListScans(Action): |
||
30 | def run(self, customer_id=None): |
||
31 | """ |
||
32 | The template class for |
||
33 | |||
34 | Returns: An blank Dict. |
||
35 | |||
36 | Raises: |
||
37 | ValueError: On lack of key in config. |
||
38 | """ |
||
39 | |||
40 | # ChatOps is not passing None, so catch 0... |
||
41 | if customer_id == 0: |
||
42 | customer_id = None |
||
43 | |||
44 | return GetScanList(self.config, customer_id) |
||
45 |