tools: fix default resource metadata for instance

Change-Id: I788efa28ae041c7600cad60a03eb4f039c65e560
This commit is contained in:
Mehdi Abaakouk 2015-11-25 15:07:02 +00:00
parent b96509715d
commit 299d08196a

View File

@ -44,8 +44,9 @@ def make_test_data(name, meter_type, unit, volume, random_min,
end, interval, resource_metadata=None, source='artificial'):
resource_metadata = resource_metadata or {'display_name': 'toto',
'host': 'tata',
'image_ref_url': 'test',
'image_ref': 'test',
'instance_flavor_id': 'toto',
'server_group': 'toto',
}
# Compute start and end timestamps for the new data.
if isinstance(start, datetime.datetime):