v1.1.31: CMDB hard delete + fix _resolve_ref_svc params update

This commit is contained in:
2026-07-29 13:48:49 +04:00
parent b4980aed76
commit d17c84548d
3 changed files with 18 additions and 2 deletions
+10
View File
@@ -117,3 +117,13 @@ class HttpClient:
# Location бывает вида "./UUID" или "/api/v1/svc/instanceOperations/UUID"
result["_location"] = loc
return result
def raw_delete(self, url):
"""DELETE-запрос к произвольному URL (CMDB API).
Не добавляет Nubes-эндпоинт — используется для жёсткого удаления инстансов.
Возвращает True если 2xx, иначе False."""
try:
r = self._session.delete(url, timeout=10)
return r.ok
except Exception:
return False