mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Revert diff newline change
This commit is contained in:
parent
2a901e960d
commit
ed35633a1f
2 changed files with 2 additions and 6 deletions
|
@ -558,8 +558,6 @@ def get_diff(a, b, *args, **kwargs):
|
|||
with unicode on PY2.
|
||||
'''
|
||||
encoding = ('utf-8', 'latin-1', __salt_system_encoding__)
|
||||
if 'lineterm' not in kwargs:
|
||||
kwargs['lineterm'] = os.linesep
|
||||
# Late import to avoid circular import
|
||||
import salt.utils.data
|
||||
return ''.join(
|
||||
|
|
|
@ -3755,10 +3755,8 @@ class BlockreplaceTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
pillar={'name': name},
|
||||
)
|
||||
log.error("ret = %s", repr(ret))
|
||||
diff = dedent('''\
|
||||
---
|
||||
+++
|
||||
@@ -0,0 +1,3 @@
|
||||
diff = '--- \n+++ \n@@ -0,0 +1,3 @@\n'
|
||||
diff += dedent('''\
|
||||
+#-- start managed zone --
|
||||
+äöü
|
||||
+#-- end managed zone --
|
||||
|
|
Loading…
Add table
Reference in a new issue