Adds `Name` field to `System` resource response

Before this, the system `Name` field was not being populated in the
json response being sent on querying a specific `System` resource.
This patch populates the said `Name` field.

Change-Id: I1fc039de074b4ce41753c13cca9b6ebbca0b23fa
This commit is contained in:
Varsha 2019-06-07 13:25:49 +05:30
parent 916110d416
commit 1edffefe72
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ def system_resource(identity):
with virt_driver() as driver:
return flask.render_template(
'system.json', identity=identity,
name=driver.name(identity),
uuid=driver.uuid(identity),
power_state=driver.get_power_state(identity),
total_memory_gb=driver.get_total_memory(identity),