Bug 1394045 - diff generated by `rhncfg-manager diff` does not wrap added ("+") and removed ("-") lines
Summary: diff generated by `rhncfg-manager diff` does not wrap added ("+") and removed...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-10 21:41 UTC by Jan Hutař
Modified: 2020-03-13 13:30 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-13 13:30:08 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2016-11-10 21:41:37 UTC
Description of problem:
When testing bug 1358484 I have noticed that diff generated by `rhncfg-manager diff ...` does not wrap added ("+") and removed ("-") lines.


Version-Release number of selected component (if applicable):
rhncfg-management-5.10.98-1.el7.noarch


How reproducible:
always


Steps to Reproduce:
1. Create config channel and file in it with only "a" in it
2. Subscribe system to it and enable deploy actions on it:
   # rhn-actions-control --enable-all
3. Schedule deploy of all files on the system in webUI and make sure it happens:
   # rhn_check -vv
4. Alter deployed file:
   # date > /tmp/bz1358484
5. Run diff:
   # rhncfg-manager diff /tmp/bz1358484 -c bz1358484


Actual results:
# rhncfg-manager diff /tmp/bz1358484 -c bz1358484
Using server name <fqdn>
--- /tmp/bz1358484	2016-11-10 22:29:50.843000+01:00	attributes: -rw-r--r-- root root 	config channel: bz1358484	revision: 1
+++ /tmp/bz1358484	2016-11-10 22:33:09	attributes: -rw-r--r-- root root unconfined_u:object_r:user_tmp_t:s0	config channel: local file	revision: None
@@ -1 +1 @@
-a+Thu Nov 10 22:33:09 CET 2016


Expected results:
# rhncfg-manager diff /tmp/bz1358484 -c bz1358484
Using server name <fqdn>
--- /tmp/bz1358484	2016-11-10 22:29:50.843000+01:00	attributes: -rw-r--r-- root root 	config channel: bz1358484	revision: 1
+++ /tmp/bz1358484	2016-11-10 22:33:09	attributes: -rw-r--r-- root root unconfined_u:object_r:user_tmp_t:s0	config channel: local file	revision: None
@@ -1 +1 @@
-a
+Thu Nov 10 22:33:09 CET 2016


Additional info:
I have not checked if this is a regression against older SW releases or not.

Comment 1 Michael Mráka 2020-03-13 13:30:08 UTC
Spacewalk 2.8 (and older) has already reached it's End Of Life.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before end of life. If you would still like
to see this bug fixed and are able to reproduce it against current version
of Spacewalk 2.9, you are encouraged change the 'version' and re-open it.


Note You need to log in before you can comment on or make changes to this bug.