-
Notifications
You must be signed in to change notification settings - Fork 22
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 #5594: use windows compatible command for executor daemon #517
Merged
jooooooon
merged 1 commit into
Normation:branches/rudder/2.10
from
ncharles:bug_5594/dev/executor_daemon_windows
Oct 9, 2014
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why do you specify the full path to failsafe.cf here? If it is necessary in windows for some weird reason, that weird reason must be in a comment on this file so future readers understand and don't break it.
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.
this is what is done in CFEngine masterfiles; there is no reason to do differently
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.
I don't understand, sorry. We use just "failsafe.cf" on !windows, which is (according to CFEngine docs) a relative path taken from ${sys.workdir}/inputs. The change you are introducing in Rudder is adding a full path where we used to use a relative path.
My question is simple: does this relative path not work on Windows?
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.
i do not know, as stated earlier, CFEngine best practice is to use for windows the full path, as showed in https://github.com/cfengine/masterfiles/blob/master/controls/cf_execd.cf#L34
the change i'm introducing is replacing && (that doesn't work on Windows) by & and using the syntax that is maintained by CFEngine, and assured to work in current and future release
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.
Ah, this is a CFEngine best practice! That is what I'm trying to get at!
Yes, your change is to replace && by &. But you're introducing an unrelated change - the full path.
Please add a comment above this line explaining why you're doing this. The comment is very simple to write: "CFEngine best practice is to use full paths on Windows". Then, we can understand why this is different between windows:: and !windows:: in the future. Thank you.