onedns/onedns/monitor.py

14 lines
242 B
Python

import time
from onedns import api
class OneMonitor(api.OneDNS):
"""
Daemon that syncs OpenNebula VMs with OneDNS
"""
def run(self, interval=60):
while True:
self.sync()
time.sleep(interval)