X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_ro%2Fnfvo_db.py;h=3dcffd0c4fd9665a7107bc05f9523f9517ec3ffd;hb=2935631c49a315fb078d05380569f7e1ca21fcde;hp=ac392c6dea51142532eed67dd13afb67c693c6ab;hpb=c3b6d3775a351b9663ebb9bd94a5694d99d647da;p=osm%2FRO.git diff --git a/osm_ro/nfvo_db.py b/osm_ro/nfvo_db.py index ac392c6d..3dcffd0c 100644 --- a/osm_ro/nfvo_db.py +++ b/osm_ro/nfvo_db.py @@ -590,10 +590,12 @@ class nfvo_db(db_base.db_base): self.cur.execute(cmd) vnf['interfaces'] = self.cur.fetchall() #vms - cmd = "SELECT vms.uuid as uuid, flavor_id, image_id, vms.name as name, vms.description as description, vms.boot_data as boot_data " \ - " FROM vnfs join vms on vnfs.uuid=vms.vnf_id " \ - " WHERE vnfs.uuid='" + vnf['vnf_id'] +"'" \ - " ORDER BY vms.created_at" + cmd = "SELECT vms.uuid as uuid, flavor_id, image_id, vms.name as name," \ + " vms.description as description, vms.boot_data as boot_data," \ + " vms.availability_zone as availability_zone" \ + " FROM vnfs join vms on vnfs.uuid=vms.vnf_id " \ + " WHERE vnfs.uuid='" + vnf['vnf_id'] +"'" \ + " ORDER BY vms.created_at" self.logger.debug(cmd) self.cur.execute(cmd) vnf['vms'] = self.cur.fetchall()