-
Notifications
You must be signed in to change notification settings - Fork 185
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
CFE-4053: Fixed bug where default:sys.fqhost contained many spaces #5531
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
############################################################## | ||
# | ||
# Test default:sys.fqhost with domain CFE-4053 | ||
# | ||
############################################################## | ||
|
||
body common control | ||
{ | ||
domain => "cfengine.com"; | ||
bundlesequence => { "check" }; | ||
} | ||
|
||
bundle agent __main__ | ||
{ | ||
methods: | ||
"check"; | ||
} | ||
|
||
############################################################## | ||
|
||
bundle agent check | ||
{ | ||
reports: | ||
DEBUG:: | ||
"$(sys.fqhost), $(sys.uqhost).cfengine.com"; | ||
|
||
any:: | ||
"$(this.promise_filename) Pass" | ||
if => strcmp( "$(sys.fqhost)", "$(sys.uqhost).cfengine.com" ); | ||
|
||
"$(this.promise_filename) FAIL" | ||
unless => strcmp( "$(sys.fqhost)", "$(sys.uqhost).cfengine.com" ); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't expect this to work on my machine. And many other machines... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because I don't think my machine has There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aren't we doing that with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh! I guess we are! I didn't see that. Or rather, I didn't even know it was possible. 😅 |
||
} |
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.
@larsewi In this case, the diff is rather big, but the important difference is the change from
%511s.%511s
to%s.%s
. I would've explained this in the commit (as you did in the ticket).