rest_dbus: upload: Return version id

In the put/post upload handler, subscribe to the signal for InterfacesAdded to
the software path and return the version id which is the last item of the path,
wait up to 10 seconds for the new software D-Bus object to be created.

Tested: https://${bmc}/upload/image method returns the version id:

Before:
  {
    "data": null,
    "message": "200 OK",
    "status": "ok"
  }

After:
  {
    "data": "84fb16be",
    "message": "200 OK",
    "status": "ok"
  }

Change-Id: I307079f9a3b8f05bc42bc77c89e7976920c668a5
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed
tree: 06cf6d037c2014d484171c68780fb184a7495049
  1. module/
  2. servers/
  3. LICENSE