-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug where default:sys.fqhost contained many spaces
Fixed bug where `default:sys.fqhost` contained many spaces when domain is set in body common control. Ticket: CFE-4053 Changelog: Commit Signed-off-by: Lars Erik Wik <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
9 deletions.
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
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" ); | ||
} |