Tâche #34491
Scénario #34369: Traitement express MEN (26-29)
[2.8.1] manage_schedule -d once -s <script> sort une exception
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Start date:
08/12/2022
Due date:
% Done:
100%
Remaining (hours):
0.0
Description
# manage_schedule -d once -s queryauto join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
L'erreur est sans doute présente depuis la 2.7.0.
L'aide dit pourtant :
-d SCRIPT NAME|once, --del=SCRIPT NAME|once Désactive le script en précisant son nom ou 'once' et le nom du script avec l’option -s (ne pas oublier d'appliquer la configuration)
Related issues
Associated revisions
fix regression with `manage_schedule -d`
Ref: #34491
pylint cleaning
Ref: #34491
History
#1 Updated by Laurent Gourvenec 6 months ago
- Related to Tâche #23919: Suppression définitive de l'argument mode en 2.7.0 (modification d'API) added
#2 Updated by Laurent Gourvenec 6 months ago
- Description updated (diff)
#4 Updated by Joël Cuissinat 5 months ago
Avec hack :
root@eolebase:~# manage_schedule -d once -s majauto Traceback (most recent call last): File "/usr/share/eole/sbin/manage_schedule", line 92, in <module> main() File "/usr/share/eole/sbin/manage_schedule", line 79, in main del_schedule(option.delete, None, option.script) File "/usr/lib/python3/dist-packages/pyeole/schedule.py", line 52, in del_schedule dest = join(SCHEDULE_DIR, day, mode) File "/usr/lib/python3.8/posixpath.py", line 90, in join genericpath._check_arg_types('join', a, *p) File "/usr/lib/python3.8/genericpath.py", line 152, in _check_arg_types raise TypeError(f'{funcname}() argument must be str, bytes, or ' TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
#5 Updated by Joël Cuissinat 5 months ago
- Related to deleted (Tâche #23919: Suppression définitive de l'argument mode en 2.7.0 (modification d'API))
#6 Updated by Joël Cuissinat 5 months ago
- Related to Tâche #33087: manage_schedule devrait ignorer les fichiers *~ added
#7 Updated by Joël Cuissinat 5 months ago
Après étude, c'est le commit suivant (≥ 2.8.1) qui entraîne cette régression : python-pyeole:0d83b834 !
#8 Updated by Joël Cuissinat 5 months ago
- Tracker changed from Demande to Tâche
- Status changed from Nouveau to En cours
- Assigned To set to Joël Cuissinat
- Parent task set to #34369
#9 Updated by Joël Cuissinat 5 months ago
- Status changed from En cours to Résolu
- % Done changed from 0 to 100
Pour tester :
- manage_schedule -a once -s queryauto
- manage_schedule -d once -s queryauto
#10 Updated by Fabrice Barconnière 5 months ago
C'est OK mai il y a une petite erreur dans la doc pour désactiver la maj, il faut remplacer :
python3 -c "from creole import maj; maj.enable_maj_auto(); print(maj.maj_enabled())"
par
python3 -c "from creole import maj; maj.disable_maj_auto(); print(maj.maj_enabled())"
Corrigé dans scenari. Je vérifierais demain quand les docs seront régénérées
#11 Updated by Fabrice Barconnière 5 months ago
Doc 2.8 et 2.9 OK
#12 Updated by Fabrice Barconnière 5 months ago
- Status changed from Résolu to Fermé
- Remaining (hours) set to 0.0