Fix capture-instance-metadata.sh 80/65580/3
authorAric Gardner <agardner@linuxfoundation.org>
Tue, 22 Sep 2020 20:51:59 +0000 (16:51 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Tue, 22 Sep 2020 20:55:36 +0000 (16:55 -0400)
commitac18bc16fef4450781919dacedee149b092588b8
tree11ccd44507d7c38baec0c786a71c22808aac9c7f
parent59faa9977d726858902dcf513999616aaf6de7a5
Fix capture-instance-metadata.sh

bios_vendor file now says Xen, no amazon string
to match on any longer.

cat /sys/devices/virtual/dmi/id/bios_vendor
Xen

however result.json has the info we need.

/run/cloud-init/result.json
{
 "v1": {
  "datasource": "DataSourceEc2Local",
  "errors": []
 }
}

Issue-Id: RELENG-3163

Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: Iece691579622608616a6abc8d27b9ca7653ad9ae
shell/capture-instance-metadata.sh