restapi: fix incorrectly implemented cloud-init metadata

Change-Id: I44111ab1c8d2c8b449bc1ac6924ba30dd21fcbca
Signed-off-by: Michael pasternak <mpastern@redhat.com>