Skip to content

Commit

Permalink
Fix bug intrduced in pr/97 (zalando#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDem0n authored Oct 13, 2016
1 parent 3f8741e commit 7a2d2d6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions postgres-appliance/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,14 +450,12 @@ def main():
if os.environ.get('PATRONIVERSION') < '1.0':
raise Exception('Patroni version >= 1.0 is required')

if os.environ.get('DEVELOP', '').lower() in ['1', 'true', 'on']:
write_etcd_configuration(placeholders)
provider = PROVIDER_LOCAL
else:
provider = get_provider()

provider = os.environ.get('DEVELOP', '').lower() in ['1', 'true', 'on'] and PROVIDER_LOCAL or get_provider()
placeholders = get_placeholders(provider)

if provider == PROVIDER_LOCAL:
write_etcd_configuration(placeholders)

config = yaml.load(pystache_render(TEMPLATE, placeholders))
config.update(get_dcs_config(config, placeholders))

Expand Down

0 comments on commit 7a2d2d6

Please sign in to comment.