Skip to content

Commit 27e4fb6

Browse files
committed
cfengine format .
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent 006e6a3 commit 27e4fb6

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

tests/lint/015_macro_multi_def_bundle.cf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ bundle agent main
1616
{
1717
methods:
1818
@if minimum_version(3.24)
19-
"test1"
20-
usebundle => test("hello", "world");
19+
"test1" usebundle => test("hello", "world");
2120
@else
22-
"test2"
23-
usebundle => test("hello");
21+
"test2" usebundle => test("hello");
2422
@endif
2523
}

tests/lint/017_implies_body.cf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ body copy_from mycopy(from, server)
77
bundle agent main
88
{
99
files:
10-
"/tmp/test"
11-
copy_from => mycopy("/src", "host1");
10+
"/tmp/test" copy_from => mycopy("/src", "host1");
1211
}

tests/lint/018_nested_calls.cf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ bundle agent helper(arg)
1212
bundle agent main
1313
{
1414
files:
15-
"/tmp/test"
16-
copy_from => mycopy(readfile("/etc/source", "100"));
15+
"/tmp/test" copy_from => mycopy(readfile("/etc/source", "100"));
16+
1717
methods:
18-
"test"
19-
usebundle => helper(format("hello %s", "world"));
18+
"test" usebundle => helper(format("hello %s", "world"));
19+
2020
vars:
2121
"x" string => format("nested: %s", getuid("root"));
2222
}

0 commit comments

Comments
 (0)