hobo_deploy: only add variables of the current service (#6772)
This commit is contained in:
parent
280ce8159b
commit
f109d388fd
|
@ -143,7 +143,7 @@ class CmdCheckHobos(Command):
|
|||
instance_path = '%s+' % parsed_url.path.replace('/', '+')
|
||||
return instance_path
|
||||
|
||||
def configure_site_options(self, service, pub):
|
||||
def configure_site_options(self, current_service, pub):
|
||||
# configure site-options.cfg
|
||||
config = ConfigParser.RawConfigParser()
|
||||
site_options_filepath = os.path.join(pub.app_dir, 'site-options.cfg')
|
||||
|
@ -166,9 +166,8 @@ class CmdCheckHobos(Command):
|
|||
if self.all_services.get('variables'):
|
||||
for key, value in self.all_services.get('variables').items():
|
||||
variables[key] = value
|
||||
for service in self.all_services.get('services', []):
|
||||
for key, value in service.get('variables', {}).items():
|
||||
variables[key] = value
|
||||
for key, value in current_service.get('variables', {}).items():
|
||||
variables[key] = value
|
||||
|
||||
if variables:
|
||||
if not 'variables' in config.sections():
|
||||
|
|
Loading…
Reference in New Issue