The fix needs to be slightly different. This is how 13.07.3 behaves:
ubuntu@server-d3b53f12-ca66-486f-b82f-f87ff392df3c:~$ l /etc/landscape/
total 12K
drwxr-xr-x 2 root root 4.0K Mar 25 13:55 .
drwxr-xr-x 86 root root 4.0K Mar 25 13:53 ..
-rw------- 1 landscape root 164 Mar 25 13:55 client.conf
ubuntu@server-d3b53f12-ca66-486f-b82f-f87ff392df3c:~$ landscape-sysinfo
System load: 1.07 Processes: 60
Usage of /: 8.8% of 9.84GB Users logged in: 1
Memory usage: 3% IP address for eth0: 10.55.32.37
Swap usage: 0%
Graph this data and manage this system at: https://landscape.canonical.com/
ubuntu@server-d3b53f12-ca66-486f-b82f-f87ff392df3c:~$ landscape-sysinfo -c /etc/landscape/client.conf
error: config file /etc/landscape/client.conf can't be read
ubuntu@server-d3b53f12-ca66-486f-b82f-f87ff392df3c:~$
In summary, sysinfo in 14.01 should not complain if:
a) the *default* config file does not exist
b) the *default* config file is not readable
It should complain if the file specified by -c:
a) does not exist
b) is not readable
The fix needs to be slightly different. This is how 13.07.3 behaves: server- d3b53f12- ca66-486f- b82f-f87ff392df 3c:~$ l /etc/landscape/ server- d3b53f12- ca66-486f- b82f-f87ff392df 3c:~$ landscape-sysinfo
ubuntu@
total 12K
drwxr-xr-x 2 root root 4.0K Mar 25 13:55 .
drwxr-xr-x 86 root root 4.0K Mar 25 13:53 ..
-rw------- 1 landscape root 164 Mar 25 13:55 client.conf
ubuntu@
System load: 1.07 Processes: 60
Usage of /: 8.8% of 9.84GB Users logged in: 1
Memory usage: 3% IP address for eth0: 10.55.32.37
Swap usage: 0%
Graph this data and manage this system at: /landscape. canonical. com/ server- d3b53f12- ca66-486f- b82f-f87ff392df 3c:~$ landscape-sysinfo -c /etc/landscape/ client. conf client. conf can't be read server- d3b53f12- ca66-486f- b82f-f87ff392df 3c:~$
https:/
ubuntu@
error: config file /etc/landscape/
ubuntu@
In summary, sysinfo in 14.01 should not complain if:
a) the *default* config file does not exist
b) the *default* config file is not readable
It should complain if the file specified by -c:
a) does not exist
b) is not readable