debmonitor
Debmonitor module.
- exception spicerack.debmonitor.DebmonitorError[source]
Bases:
SpicerackError
Custom exception class for errors of the Debmonitor class.
- class spicerack.debmonitor.Debmonitor(host: str, cert: str, key: str, dry_run: bool = True) None [source]
Bases:
object
Class to interact with a Debmonitor website.
Initialize the instance.
- Parameters:
- host_delete(hostname: str) None [source]
Remove a host and all its packages from Debmonitor.
- Parameters:
host -- the FQDN of the host to remove from Debmonitor.
- Raises:
spicerack.debmonitor.DebmonitorError -- on failure to delete. It doesn't raise if the host is already absent in Debmonitor.
- Return type: