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:
Monty Taylor 2018-12-06 20:37:12 +00:00
parent 41ccc0731e
commit f06b60f4f9
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -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')