revision 281 incorrectly applied a fix, this is the correct fix.

the helper we needed is ds_get_item not ds_get_item_path.

LP: #1132686
This commit is contained in:
Scott Moser
2013-11-25 16:06:32 -05:00
parent 1bb78b1ab8
commit 8a039f735e

View File

@@ -79,7 +79,7 @@ cirros_apply() {
# here do any common things for $mode
#
local hostname=""
if ds_get_item_path hostname || ds_get_item_path local-hostname; then
if ds_get_item hostname || ds_get_item local-hostname; then
hostname="${_RET%%.*}"
echo "$hostname" > /etc/hostname
hostname -F /etc/hostname