Deal with double-normalization of host_id
We need to generalize this a bit more, but when we pass a server.to_dict() from the resource layer into cloud's normalize, things go sideways. Change-Id: I926811d43c0bde15fa2178fdc35285cb5ad5eddf
This commit is contained in:
parent
41ccc0731e
commit
f06b60f4f9
|
@ -485,7 +485,7 @@ class Normalizer(object):
|
|||
'has_config_drive', server.pop('config_drive', False))
|
||||
ret['has_config_drive'] = _to_bool(config_drive)
|
||||
|
||||
host_id = server.pop('hostId', None)
|
||||
host_id = server.pop('hostId', server.pop('host_id', None))
|
||||
ret['host_id'] = host_id
|
||||
|
||||
ret['progress'] = _pop_int(server, 'progress')
|
||||
|
|
Loading…
Reference in New Issue