Fix timestamp column migration

The updated_at and created_at columns from the baremetal database
table were being switched when migrated into the ironic database
table.

Change-Id: Ibc8b1d699fc302b84cf0bc2d8159a5b5510c3abb
Closes-Bug: #1369699
This commit is contained in:
David Shrewsbury 2014-09-15 14:46:26 -04:00
parent 65ccfae291
commit f92071e501

View File

@ -101,8 +101,8 @@ def convert_nova_nodes(nodes, cpu_arch, nova_conf):
i_node.instance_uuid = n_node.instance_uuid
i_node.reservation = None
i_node.maintenance = False
i_node.updated_at = n_node.created_at
i_node.created_at = n_node.updated_at
i_node.updated_at = n_node.updated_at
i_node.created_at = n_node.created_at
# Populate states
if n_node.task_state == nova_states.ACTIVE: