Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENT-9402: Added policy to facilitate migration of ignore_interfaces.rx from inputdir to workdir #2750

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

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

Thanks 🚀

cfe_internal/recommendations.cf Outdated Show resolved Hide resolved
cfe_internal/recommendations.cf Outdated Show resolved Hide resolved
Comment on lines 65 to 68
(ignore_interfaces_in_workdir.ignore_interfaces_in_inputdir).!default:mpf_auto_migrate_ignore_interfaces_rx_to_workdir_reports_disabled::
"NOTICE: ignore_interfaces.rx identical in $(const.dollar)(sys.workdir) and $(const.dollar)(sys.inputdir)."
if => strcmp( readfile( "$(sys.workdir)/ignore_interfaces.rx"),
readfile( "$(sys.inputdir)/ignore_interfaces.rx") );

"NOTICE: ignore_interfaces.rx in $(const.dollar)(sys.workdir) and $(const.dollar)(sys.inputdir) but not identical."
if => not( strcmp( readfile( "$(sys.workdir)/ignore_interfaces.rx"),
readfile( "$(sys.inputdir)/ignore_interfaces.rx") ) );
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this too noisy?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it? You can disable the noise if you like.

…utdir to workdir

This change aims to increase awareness of the change in behavior for the
location of the ignore_interfaces.rx file. It emits reports about the presence
and status of the file.

In order to further facilitate the migration, this policy will copy the file
from inputdir to workdir if the class
default:mpf_auto_migrate_ignore_interfaces_rx_to_workdir is defined and the
file is present.

Ticket: ENT-9402
Changelog: Title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants