You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/dev/api/v1/objects/diff.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -94,9 +94,9 @@ Returns the value of the resource from the new catalog.
94
94
}
95
95
}
96
96
97
-
# Demonstrates structure and old_value
97
+
# Demonstrates structure and new_value
98
98
diff.structure #=> ['parameters', 'content']
99
-
diff.old_value #=> 'This is the NEW FILE!!!!!'
99
+
diff.new_value #=> 'This is the NEW FILE!!!!!'
100
100
```
101
101
102
102
#### `#old_file` (String)
@@ -107,7 +107,7 @@ Note that this is a pass-through of information provided in the Puppet catalog,
107
107
108
108
Note also that if the diff represents addition of a resource, this will return `nil`, because the resource does not exist in the old catalog.
109
109
110
-
#### `#old_file` (String)
110
+
#### `#old_line` (String)
111
111
112
112
Returns the line number within the Puppet manifest giving rise to the resource as it exists in the old catalog. (See `#old_file` for the filename of the Puppet manifest.)
0 commit comments