Skip to content

Change standalone validator to warn FILE variable substitution instead of failure #441

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

Closed
wants to merge 3 commits into from

Conversation

jshum2479
Copy link
Member

Change standalone validator so that if the variable @@file@@ value does not exist, it warns instead of error out. The environment where it is validating may not be have the file contents yet.

… value does not exist instead of error out. The environment where it is validating may not be have the file contents yet.
raise ex
else:
if validation_result:
validation_result.add_warning('WLSDPLY-01733', file_path, e.getLocalizedMessage())

Choose a reason for hiding this comment

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

Since missing files are fully expected, can this be an Info instead of a Warning? Warnings can be distracting as they imply there's something that should be investigated...

Copy link
Member Author

Choose a reason for hiding this comment

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

No, the tool is not only used by the k8s and imagetool. It can be used on premise and other situation

Copy link

@tbarnes-us tbarnes-us Sep 13, 2019

Choose a reason for hiding this comment

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

Then add a third state or check for env var?

Copy link
Member

Choose a reason for hiding this comment

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

There's a new PR for this change, and a discussion of this topic.
#443

@jshum2479 jshum2479 closed this Sep 13, 2019
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.

3 participants