Project

General

Profile

Tâche #16559

Distribution EOLE - Scénario #16516: Traitement express (25-27)

CreoleLint signale une erreur sur le template pg_hba.conf

Added by Joël Cuissinat over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/20/2016
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

Sur Zéphir 2.6 ou Eolebase 2.6 + eole-postgresql :

('/usr/share/eole/creole/distrib/pg_hba.conf', ':', Exception('Il manque une option', NotFound(u"cannot find 'pg_admin_hosts_db' while searching for 'user_ip.pg_admin_hosts_db'",),
'avec le dictionnaire', {'pg_admin_hosts_ip': {u'slave': {'pg_admin_hosts_db': [u'value'], 'pg_admin_hosts_netmask': [u'255.255.255.0'], 'pg_admin_hosts_account': [u'value']},
u'value': [u'value']}, 'activer_postgresql': 'oui', 'pg_admin_hosts': u'oui', 'adresse_ip_br0': u'127.0.0.1'}))

Le template paraît correct...

Associated revisions

Revision ed987d61 (diff)
Added by Emmanuel GARETTE over 3 years ago

user_ip n'est pas une liste mais un objet master/slave (ref #16559 @1h)

History

#1 Updated by Scrum Master over 3 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Scrum Master over 3 years ago

  • Assigned To set to Emmanuel GARETTE

#3 Updated by Emmanuel GARETTE over 3 years ago

  • % Done changed from 0 to 10
  • Remaining (hours) changed from 2.0 to 1.0
%for %%user_ip in %%getVar('pg_admin_hosts_ip', [])
host    %%user_ip.pg_admin_hosts_db %%user_ip.pg_admin_hosts_account    %%user_ip   %%user_ip.pg_admin_hosts_netmask    md5
%end for

Une liste ... n'a pas d'attribut "pg_admin_hosts_db". Il faut corriger le template.

#4 Updated by Emmanuel GARETTE over 3 years ago

  • % Done changed from 10 to 100
  • Remaining (hours) changed from 1.0 to 0.25

#5 Updated by Scrum Master over 3 years ago

  • Status changed from En cours to Résolu

#6 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0
root@eolebase:~# CreoleLint -t pg_hba.conf 

Template Non valide (valid_parse_tmpl:ERROR:error)
 \-- /usr/share/eole/creole/distrib/pg_hba.conf
root@eolebase:~#

Also available in: Atom PDF