[Bug 1017832] New: cloud-init: query command causes UnboundLocalError