summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Basnight <mbasnight@gmail.com>2012-03-21 23:15:46 -0500
committerMichael Basnight <mbasnight@gmail.com>2012-03-21 23:15:46 -0500
commit8cfa3d97c4c79ca396747041ee18b9494efe47f9 (patch)
tree8551dd52dee6388d981206c28e17047fc873a96b /bin
parenta5f978bae3b5bb535ac26244d4538cc146503fe6 (diff)
downloadtrove-8cfa3d97c4c79ca396747041ee18b9494efe47f9.tar.gz
Getting the guest status update working.
* Added the db calls to the guest code * Changed the default for the confs to use MySQL * Added HACKISH uuid as a global var for status lookups * * This is because the ip is no longer saved in the reddwarf db. We can do something better in the future since this does not persist if the agent stops.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reddwarf-guestagent4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reddwarf-guestagent b/bin/reddwarf-guestagent
index 1201def5..b88b3cb7 100755
--- a/bin/reddwarf-guestagent
+++ b/bin/reddwarf-guestagent
@@ -40,7 +40,7 @@ from reddwarf import version
from reddwarf.common import config
from reddwarf.common import service
# TODO(hub-cap): find out why the db api isint being imported properly
-#from reddwarf.db import db_api
+from reddwarf.db import db_api
if __name__ == '__main__':
@@ -53,7 +53,7 @@ if __name__ == '__main__':
try:
conf, app = config.Config.load_paste_app('reddwarf-guestagent',
options, args)
- # db_api.configure_db(conf)
+ db_api.configure_db(conf)
server = service.Service.create(binary='reddwarf-guestagent',
host=socket.gethostname())
service.serve(server)