Client rewrites config file and remove comments and other settings

Bug #1216696 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
In Progress
Low
Geoff Teale

Bug Description

The client has this nasty habit of messing with the config file client.conf. For example:

a) it removes comments
root@nsn7:~# cat /etc/landscape/client.conf
[client]
data_path = /var/lib/landscape/client
computer_title = nsn7
exchange_interval = 60
urgent_exchange_interval = 30
ping_interval = 10
account_name = landscape-devel

root@nsn7:~# echo "# This is a very nice comment that took me a lot of research" >> /etc/landscape/client.conf

root@nsn7:~# grep "nice comment" /etc/landscape/client.conf
# This is a very nice comment that took me a lot of research

root@nsn7:~# landscape-config --silent &> /dev/null

root@nsn7:~# grep "nice comment" /etc/landscape/client.conf
root@nsn7:~#

b) It also strips the url and ping_url keys when they happen to match the values for landscape hosted production.
root@nsn7:~# grep url /etc/landscape/client.conf
url = https://landscape.canonical.com/message-system
ping_url = http://landscape.canonical.com/ping
root@nsn7:~# landscape-config --silent &> /dev/null
root@nsn7:~# grep url /etc/landscape/client.conf
root@nsn7:~#

Tags: defect
tags: removed: kanban
Changed in landscape-client:
milestone: 13.08 → 13.09
Geoff Teale (tealeg)
Changed in landscape-client:
assignee: nobody → Geoff Teale (tealeg)
status: New → In Progress
Revision history for this message
Geoff Teale (tealeg) wrote :

I've split this bug into two more specific bugs:

  Bug #1221633
  Bug #1221659

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.