Project

General

Profile

Actions

Bug #27947

open

Error on augeas check method to compare numeric

Bug #27947: Error on augeas check method to compare numeric

Added by Lucas FRANCOIS 10 days ago. Updated 2 days ago.

Status:
Pending release
Priority:
To review
Assignee:
Category:
Module - augeas
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

My value in /etc/login.defs is at 365
Happening in 9.0 so probably also in 8.3
Augeas method returns :

raugtool> check /files/etc/login.defs/PASS_MAX_DAYS <= 365
error: numeric comparison: 365 <= 365 is invalid
raugtool> check /files/etc/login.defs/PASS_MAX_DAYS <= 366
numeric comparison: 365 <= 366 is valid
raugtool> check /files/etc/login.defs/PASS_MAX_DAYS < 365
numeric comparison: 365 < 365 is valid
raugtool> check /files/etc/login.defs/PASS_MAX_DAYS < 364
error: numeric comparison: 365 < 364 is invalid
raugtool> check /files/etc/login.defs/PASS_MAX_DAYS <= 364
error: numeric comparison: 365 <= 364 is invalid
raugtool> check /files/etc/login.defs/PASS_MAX_DAYS < 366
numeric comparison: 365 < 366 is valid

Updated by Nicolas CHARLES 10 days ago Actions #2

I confirm it happens also on 8.3

Updated by Martin HART 10 days ago Actions #3

  • Status changed from New to In progress
  • Assignee set to Martin HART

Updated by Martin HART 10 days ago Actions #4

  • Status changed from In progress to Pending technical review
  • Pull Request set to https://github.com/Normation/rudder/pull/6748

Updated by Anonymous 10 days ago Actions #5

  • Status changed from Pending technical review to Pending release

Updated by Martin HART 2 days ago Actions #6

  • Fix check changed from To do to Checked
Actions

Also available in: PDF Atom