Anomalie #7854
Variables auto_save : ne pas forcer force_default_on_freeze
Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Distribution:
EOLE 2.4
Description
Enregistrer une valeur dans config.eol et l'utiliser (ne pas utiliser la valeur par défaut du dictionnaire).
Variables à problèmes :
bacula_fd_password bacula_sd_password
Révisions associées
si auto_save est présent dans les propriétés, ne pas mettre la propriété force_default_on_freeze (fixes #7854)
Historique
#1 Mis à jour par Emmanuel GARETTE il y a environ 10 ans
- Echéance mis à 04/04/2014
- Assigné à mis à Emmanuel GARETTE
- Version cible mis à Eole 2.4-RC3
Ce sont deux problèmes un peu différent :
- bacula_fd_password : la variable est hidden :
from creole.loader import creole_loader a=creole_loader() b=a.cfgimpl_get_description().creole.directeur_bacula.bacula_fd_password b._properties ('hidden', 'frozen', 'force_default_on_freeze', 'force_store_value', 'normal')
La valeur est remise à la valeur par défaut dans les propriétés de la variable ('force_default_on_freeze).
- les propriétés sont OK, mais pas le frozen_if_in :
from creole.loader import creole_loader a=creole_loader() b=a.cfgimpl_get_description().creole.directeur_bacula.bacula_sd_password b._properties ('mandatory', 'force_store_value', 'normal') b._requires (((<tiramisu.option.ChoiceOption object at 0x2a5d4d8>, ('oui',), 'frozen', False, True, True),), ((<tiramisu.option.ChoiceOption object at 0x2a5d4d8>, ('oui',), 'hidden', False, True, True),), ((<tiramisu.option.ChoiceOption object at 0x2a5d4d8>, ('oui',), 'force_default_on_freeze', False, True, True),))
#2 Mis à jour par Emmanuel GARETTE il y a environ 10 ans
- Statut changé de Nouveau à Résolu
- % réalisé changé de 0 à 100
Appliqué par commit b800df9428f5ce803e0a7bd7dd962dbc701cc56a.
#3 Mis à jour par Emmanuel GARETTE il y a environ 10 ans
- Statut changé de Résolu à En attente d'informations
- % réalisé changé de 100 à 0
La propriété "force_default_on_freeze" n'est plus présente quand on spécifie "auto_save" à une variable :
Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from creole.loader import creole_loader >>> a=creole_loader() >>> b=a.cfgimpl_get_description().creole.directeur_bacula.bacula_fd_password >>> b._properties ('hidden', 'frozen', 'force_store_value', 'normal') >>> b=a.cfgimpl_get_description().creole.directeur_bacula.bacula_sd_password >>> b._properties ('mandatory', 'force_store_value', 'normal') >>> b._requires (((<tiramisu.option.ChoiceOption object at 0x7f760533dc18>, ('oui',), 'frozen', False, True, True),), ((<tiramisu.option.ChoiceOption object at 0x7f760533dc18>, ('oui',), 'hidden', False, True, True),))
#4 Mis à jour par Emmanuel GARETTE il y a environ 10 ans
- Statut changé de En attente d'informations à Résolu
- % réalisé changé de 0 à 100
#5 Mis à jour par Emmanuel GARETTE il y a environ 10 ans
Ok pour les variables de la demande :
root@scribe:~# grep bacula_sd_password /etc/eole/config.eol [..]"bacula_sd_password": {"owner": "gen_config", "val": "dfc28c21ee495be8f98dc630e44f62e889b5d1c4399d03e0910485cd"}[..] root@scribe:~# CreoleGet bacula_sd_password dfc28c21ee495be8f98dc630e44f62e889b5d1c4399d03e0910485cd
root@scribe:~# grep bacula_fd_password /etc/eole/config.eol [..]"bacula_fd_password": {"owner": "gen_config", "val": "d7d71069c1e98e30f290e624b670019d43529805e2a172b0cee7538d"}[..] root@scribe:~# CreoleGet bacula_fd_password d7d71069c1e98e30f290e624b670019d43529805e2a172b0cee7538d
#6 Mis à jour par Emmanuel GARETTE il y a environ 10 ans
- Statut changé de Résolu à Fermé