(manifest, ip)
| 611 | return False |
| 612 | |
| 613 | def uninstall_action(manifest, ip): |
| 614 | app_id = manifest["app"]["id"] |
| 615 | print_status_busy("Uninstalling") |
| 616 | url = get_url(ip, "/app/uninstall") |
| 617 | params = {'id': app_id} |
| 618 | try: |
| 619 | response = requests.put(url, params=params, timeout=http_timeout_seconds) |
| 620 | if response.status_code != 200: |
| 621 | print_status_error("Server responded that uninstall failed") |
| 622 | else: |
| 623 | print_status_success("Uninstalled") |
| 624 | except requests.RequestException as e: |
| 625 | print_status_error(f"Uninstall request failed: {e}") |
| 626 | |
| 627 | #region Main |
| 628 |
no test coverage detected