mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
90d1118cb5
commit
bb02426ce1
@ -36,5 +36,10 @@ if not os.path.isfile(inventory_file):
|
||||
|
||||
os.unlink(inventory_file)
|
||||
|
||||
peer_file = "@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/lib/icinga2/agent/inventory/" + hashlib.sha256(cn).hexdigest() + ".peer"
|
||||
|
||||
if os.path.isfile(peer_file):
|
||||
os.unlink(peer_file)
|
||||
|
||||
print("Inventory information has been removed for agent '%s'." % (cn))
|
||||
sys.exit(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user