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
Fixes #12885 - Remove forcing 'no whitespace' from policy name #147
Conversation
Will fail on engine error.... :/ |
@@ -21,7 +21,7 @@ class Policy < ActiveRecord::Base | |||
SERVER_CLASS_PARAMETER = 'server' | |||
PORT_CLASS_PARAMETER = 'port' | |||
|
|||
validates :name, :presence => true, :uniqueness => true, :format => { :without => /\s/ } | |||
validates :name, :presence => true, :uniqueness => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason why this existed in the first place? any limitation on scap scanner itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not as far as I know. And we use this name only to display it on foreman.
Maybe in the past it was used to set the puppet? We switched to id
long time ago though
[test] |
the test is failing because of this change, seems like it was on purpose |
@ares, not sure [test] was unstable. (also tested locally and it worked) |
let's see again but I think the [test] would have to be fixed too, IIRC it was no intermittent failure |
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
@shlomizadok, this pull request is currently not mergeable. Please rebase against the master branch and push again. If you have a remote called 'upstream' that points to this repository, you can do this by running:
This message was auto-generated by Foreman's prprocessor |
@shlomizadok could you rebase pls? I will set this as WoC for now... |
@xprazak2 - rebased and fixed the test :) |
Works for me, we can merge if there are no objections. |
👍 |
No description provided.