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

Validate that catalina_base does not to end with / #92

Closed
wants to merge 1 commit into from
Closed

Validate that catalina_base does not to end with / #92

wants to merge 1 commit into from

Conversation

PiotrCzapla
Copy link
Contributor

Unfortunately Augeas does not work if path contains double slash, it simply
does not find the file and fails silently to update it.

I've added the validate_re to save others some time.

Unfortunately Augeas does not work if path contains double slash, it simply
does not find the file and fails silently to update it.

I've added the validate_re to save others some time.
@@ -33,7 +33,8 @@
validate_re($connector_ensure, '^(present|absent|true|false)$')
validate_hash($additional_attributes)
validate_bool($purge_connectors)

validate_re($catalina_base, '^.*[^/]$')
Copy link

Choose a reason for hiding this comment

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

actually, i think it would be nice to add an error message here.

Copy link

Choose a reason for hiding this comment

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

see #102

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah like for all other validate rules :)

Copy link

Choose a reason for hiding this comment

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

this is a special case, imo, and the reason why i created #102.

@underscorgan
Copy link
Contributor

Closed in #102

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.

None yet

3 participants