View difference between Paste ID: 3V7gipi2 and gdL1B4q3
SHOW: | | - or go back to the newest paste.
1
testfile:
2
  file:
3
    - managed
4
    - name: /tmp/x.txt
5
    - source: salt://x.txt
6
  cmd.wait:
7
    - name: touch y
8
    - cwd: /tmp/
9
    - watch:
10-
      - file: testfile
10+
      - file: testfile
11
12
==================================================================
13
salt2:
14
----------
15
    State: - file
16
    Name:      /tmp/x.txt
17
    Function:  managed
18
        Result:    True
19
        Comment:   File /tmp/x.txt updated
20
        Changes:   diff: ---
21
+++
22
@@ -1,1 +1,1 @@
23
-11
24
+22
25
26
27
----------
28
    State: - cmd
29
    Name:      touch y
30
    Function:  wait
31
        Result:    True
32
        Comment:   Command "touch y" run
33
        Changes:   pid: 7320
34
                   retcode: 0
35
                   stderr:
36
                   stdout: