| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| 1 | #!/usr/bin/env python |
||
| 30 | class ListScanExecutions(Action): |
||
| 31 | def run(self, scan_title, customer_id=None): |
||
| 32 | """ |
||
| 33 | The template class for |
||
| 34 | |||
| 35 | Returns: An blank Dict. |
||
| 36 | |||
| 37 | Raises: |
||
| 38 | ValueError: On lack of key in config. |
||
| 39 | """ |
||
| 40 | |||
| 41 | # Set up the results |
||
| 42 | results = {} |
||
| 43 | |||
| 44 | scans = GetScanList(self.config, customer_id) |
||
| 45 | |||
| 46 | return GetScanExecutions(self.config, scans[scan_title]['id']) |
||
| 47 |