Skip to content

fix: adjust the dry-run behavior and file parsing#130

Merged
deusebio merged 2 commits intokf-8396-automate-risk-promotionfrom
kf-8396-automate-risk-promotion-improvements
Mar 2, 2026
Merged

fix: adjust the dry-run behavior and file parsing#130
deusebio merged 2 commits intokf-8396-automate-risk-promotionfrom
kf-8396-automate-risk-promotion-improvements

Conversation

@misohu
Copy link
Member

@misohu misohu commented Feb 26, 2026

  • Cleaned up charms_promotions.py and removed stale commented code.
  • Added explicit --dry-run / --apply flags (dry-run stays default).
  • Dry-run now prints real charmcraft release ... commands instead of Python list output.
  • Fixed text parsing so full juju status output works (including model/controller section).
  • Added warning+skip behavior for charms where charmcraft status fails due to missing permissions, instead of aborting the whole run.
  • Added a small usage note in README.md.

@misohu misohu requested a review from deusebio February 26, 2026 08:45
Copy link
Contributor

@deusebio deusebio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes look good! Also I like to enforce either dry-run or apply. I believe it is more explicit

@deusebio deusebio merged commit 17aae46 into kf-8396-automate-risk-promotion Mar 2, 2026
3 of 6 checks passed
@deusebio deusebio deleted the kf-8396-automate-risk-promotion-improvements branch March 2, 2026 11:49
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.

2 participants