mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-31 00:01:56 +08:00
-- added a new registration daemon (for fetching data from the new DB) -- updated the old register/activate/update functions to work with the new setup -- fixed a bug in getting keys for data blobs (wasn't re-using keys)
19 lines
387 B
Python
Executable File
19 lines
387 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from tools.onename_register import check_new_registrations
|
|
from tools.onename_activate import do_name_firstupdate
|
|
|
|
from time import sleep
|
|
|
|
POLLING_INTERVAL = 10
|
|
|
|
#-----------------------------------
|
|
if __name__ == '__main__':
|
|
|
|
while(1):
|
|
check_new_registrations()
|
|
do_name_firstupdate()
|
|
print "sleeping ... "
|
|
sleep(POLLING_INTERVAL)
|