Set the overlay type.
(self, overlay_type)
| 90 | return False |
| 91 | |
| 92 | def set_overlay(self, overlay_type): |
| 93 | """Set the overlay type.""" |
| 94 | try: |
| 95 | response = requests.post( |
| 96 | f"{self.base_url}/overlay", |
| 97 | json={"overlay": overlay_type}, |
| 98 | timeout=2 |
| 99 | ) |
| 100 | response.raise_for_status() |
| 101 | return True |
| 102 | except requests.RequestException: |
| 103 | return False |
| 104 | |
| 105 | |
| 106 | class PuppetLauncher: |
no outgoing calls
no test coverage detected