For other attributes in XML content-type, if the value is null then '' is appended.
Eg:
In nova/api/ec2/cloud.py:CloudController._format_volume
<snip>
if context.is_admin:
# NOTE(dprince): project_id and host_id are unset w/ Cinder v['status'] = '%s (%s, %s, %s, %s)' % ( volume['status'], volume.get('project_id', ''), volume.get('host', ''), instance_data, volume['mountpoint'])
<snip>
For other attributes in XML content-type, if the value is null then '' is appended. ec2/cloud. py:CloudControl ler._format_ volume
v[ 'status' ] = '%s (%s, %s, %s, %s)' % (
volume[ 'status' ],
volume. get('project_ id', ''),
volume. get('host' , ''),
instance_ data,
volume[ 'mountpoint' ])
Eg:
In nova/api/
<snip>
if context.is_admin:
# NOTE(dprince): project_id and host_id are unset w/ Cinder
<snip>