cockpit-project/cockpit — pull request #149 by cgwalters (2013-12-03 15:05:51+00:00)
Title: cockpithandlers: Be defensive if PrettyHostname is not set

The JS code will crash if the variables aren't defined; let's emit the
empty string in this case.

The real bug was that I had SELinux enforcing but with no policy for
Cockpit, so cockpitd couldn't talk to systemd-hostnamed. But let's
still submit this defensive patch.