agent: do not check wcs timestamps, this is done by the agent (#5940)
This commit is contained in:
parent
c10b80958c
commit
74af59ab3a
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue