Skip to content

KC-1342: Fix pam config list dropping seconds from 6-part Quartz CRON#2191

Merged
sshrushanth-ks merged 1 commit into
KC-1342from
KC-1342-int
Jul 7, 2026
Merged

KC-1342: Fix pam config list dropping seconds from 6-part Quartz CRON#2191
sshrushanth-ks merged 1 commit into
KC-1342from
KC-1342-int

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

pam config list showed truncated rotation schedules for PAM configs stored with 6-part Quartz CRON expressions. export_schedule_field() was dropping the seconds field when exporting type: CRON schedules, so list output did not match the stored value (e.g. "1 5 1 * * ?" displayed as "5 1 * * ?"). This fix preserves the full stored cron string.

Changes

  • vault.py — return the complete cron value for CRON-type schedules instead of stripping the first field from 6-part expressions
  • test_importer.py — added test_export_schedule_field_preserves_quartz_cron_seconds covering 6-part and 5-part Quartz cron export

@sshrushanth-ks sshrushanth-ks self-assigned this Jul 6, 2026
@sshrushanth-ks
sshrushanth-ks marked this pull request as ready for review July 6, 2026 11:52
@sshrushanth-ks
sshrushanth-ks merged commit bd0fe61 into KC-1342 Jul 7, 2026
4 checks passed
@sshrushanth-ks
sshrushanth-ks deleted the KC-1342-int branch July 7, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants