agent: do not check wcs timestamps, this is done by the agent (#5940)

This commit is contained in:
Frédéric Péters 2014-11-14 14:00:23 +01:00
parent c10b80958c
commit 74af59ab3a
2 changed files with 0 additions and 14 deletions

View File

@ -66,19 +66,6 @@ class Wcs(BaseService):
instance_path = parsed_url.netloc
if parsed_url.path:
instance_path = '%s+' % parsed_url.path.replace('/', '+')
self.app_dir = os.path.join(settings.AGENT_WCS_APP_DIR, instance_path)
def check_timestamp(self, timestamp):
config = ConfigParser.RawConfigParser()
site_options_filepath = os.path.join(self.app_dir, 'site-options.cfg')
if os.path.exists(site_options_filepath):
config.read(site_options_filepath)
try:
if config.getint('hobo', 'timestamp') == timestamp:
return True
except ConfigParser.NoSectionError:
pass
return False
def execute(self, environment):
cmd = string.Template(settings.AGENT_WCS_COMMAND)

View File

@ -130,7 +130,6 @@ SERVICE_TEMPLATES = None
SERVICE_EXTRA_VARIABLES = None
AGENT_HOST_PATTERNS = None
AGENT_WCS_APP_DIR = '/var/lib/wcs'
AGENT_WCS_COMMAND = '/usr/sbin/wcsctl check-hobos'
try: