newline appended to StaticHostname property

Bug #1134372 reported by Szymon Janc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-service (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

Bogus new line is being appended to StaticHostname property on org.freedesktop.hostname1 interface.

example output from d-feet

{u'Hostname': u'uw000953',
 u'IconName': u'',
 u'PrettyHostname': u'',
 u'StaticHostname': u'uw000953\n'}

changing line 28 in systemd.py from
    static_hostname = f.readline()
to
    static_hostname = f.readline().rstrip()

seem to fix this issue.

This issue is present in 13.04, 12.10 and 12.04 (didn't check older versions).

BR
Szymon Janc

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.