Fix default values for usage verified event.
Fix the default values in the compute.instance.verified notification generated by the UsageHandler. Bandwidth values should be int (0), not empty string. Options value should also be '0', not empty string. Change-Id: I50dc660a46adcd8354e379821e0077cc475e647b
This commit is contained in:
parent
edca8bd8b1
commit
775256d6b1
@ -358,14 +358,14 @@ class UsageHandler(PipelineHandlerBase):
|
||||
'state': exists.get('state', ''),
|
||||
'state_description': exists.get('state_description', ''),
|
||||
'bandwidth': {'public': {
|
||||
'bw_in': exists.get('bandwidth_in', ''),
|
||||
'bw_out': exists.get('bandwidth_out', '')}},
|
||||
'bw_in': exists.get('bandwidth_in', 0),
|
||||
'bw_out': exists.get('bandwidth_out', 0)}},
|
||||
'image_meta': {
|
||||
'org.openstack__1__architecture':
|
||||
exists.get('os_architecture', ''),
|
||||
'org.openstack__1__os_version': exists.get('os_version', ''),
|
||||
'org.openstack__1__os_distro': exists.get('os_distro', ''),
|
||||
'org.rackspace__1__options': exists.get('rax_options', '')
|
||||
'org.rackspace__1__options': exists.get('rax_options', '0')
|
||||
}},
|
||||
'original_message_id': exists.get('message_id', '')}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user