X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=conf_files.py;h=f3d1eb9902a4d78d423ec60fd9319a6acce65f9f;hb=74a8cfb9d2eac39ae02e5323e1fb5b1d33297981;hp=8c47f95bbcb334d83604b0ef1461b7fae68582bc;hpb=3224c1906c82596a86ae734181488ed14a0f0976;p=nodemanager.git diff --git a/conf_files.py b/conf_files.py index 8c47f95..f3d1eb9 100644 --- a/conf_files.py +++ b/conf_files.py @@ -56,14 +56,9 @@ class conf_files: else: url += '?' url += "node_id=%d"%tools.node_id() else: - logger.log('%s -- WARNING, cannot add node_id to request'%dest) - # pass slicefamily as well, as stored in /etc/planetlab/slicefamily on the node - if tools.slicefamily(): - if url.find('?') >0: url += '&' - else: url += '?' - url += "slicefamily=%s"%tools.slicefamily() + logger.log('conf_files: %s -- WARNING, cannot add node_id to request'%dest) try: - logger.verbose("retrieving URL=%s"%url) + logger.verbose("conf_files: retrieving URL=%s"%url) contents = curlwrapper.retrieve(url, self.config.cacert) except xmlrpclib.ProtocolError,e: logger.log('conf_files: failed to retrieve %s from %s, skipping' % (dest, url)) @@ -83,8 +78,9 @@ class conf_files: if data.has_key("conf_files"): for f in data['conf_files']: try: self.update_conf_file(f) - except: logger.log_exc() - else: logger.log("conf_files: No conf_files found or API failure. Skipping") + except: logger.log_exc("conf_files: failed to update conf_file") + else: + logger.log_missing_data("conf_files.run_once",'conf_files') def start(options, config): pass