Fix 0 values converted to null with JSON

Change-Id: Iae782322a2114080f4a314098565a298a063e1b3
This commit is contained in:
Srinivas Sakhamuri 2015-10-16 22:21:16 +00:00
parent 3727db20d4
commit e5f77305f7
1 changed files with 4 additions and 4 deletions

View File

@ -223,7 +223,7 @@ def _volume_payload(project_id, resource_id, load_date):
def _instance_payload(project_id, resource_id, load_date):
return {'created_at': load_date + str(timeutils.utcnow())[-15:-7],
'deleted_at': u'',
'disk_gb': 0,
'disk_gb': 100,
'display_name': u'testme',
'fixed_ips': [{'address': u'10.0.0.2',
'floating_ips': [],
@ -242,8 +242,8 @@ def _instance_payload(project_id, resource_id, load_date):
'user_id': u'abcd_01234_dcba',
'reservation_id': u'1e3ce043029547f1a61c1996d1a531a3',
'vcpus': 10,
'root_gb': 0,
'ephemeral_gb': 0,
'root_gb': 1,
'ephemeral_gb': 1,
'host': u'compute-host-name',
'availability_zone': u'1e3ce043029547f1a61c1996d1a531a4',
'os_type': u'linux?',
@ -379,4 +379,4 @@ def main():
if __name__ == '__main__':
main()
main()