Client rewrites config file and remove comments and other settings
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]
data_path = /var/lib/
computer_title = nsn7
exchange_interval = 60
urgent_
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/
root@nsn7:~# grep "nice comment" /etc/landscape/
# 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/
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/
url = https:/
ping_url = http://
root@nsn7:~# landscape-config --silent &> /dev/null
root@nsn7:~# grep url /etc/landscape/
root@nsn7:~#
tags: | removed: kanban |
Changed in landscape-client: | |
milestone: | 13.08 → 13.09 |
Changed in landscape-client: | |
assignee: | nobody → Geoff Teale (tealeg) |
status: | New → In Progress |
I've split this bug into two more specific bugs:
Bug #1221633
Bug #1221659