When creating resource provider with '--uuid' argument, nova
accept uuid without dash('-') too, which some time results in,
resource provider with same uuid i.e one with dash and one without.
This patch attempts to fix it by transforming dashless UUID into
dashed one before inserting it into the database.
Reviewed: https:/ /review. openstack. org/567191 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d27d8e44a38 45349990fca81de 805538f01480bf
Committed: https:/
Submitter: Zuul
Branch: master
commit d27d8e44a384534 9990fca81de8055 38f01480bf
Author: rajat29 <email address hidden>
Date: Wed May 9 16:15:20 2018 +0530
Normalize dashless 'resource provider create' uuid
When creating resource provider with '--uuid' argument, nova
accept uuid without dash('-') too, which some time results in,
resource provider with same uuid i.e one with dash and one without.
This patch attempts to fix it by transforming dashless UUID into
dashed one before inserting it into the database.
Co-Authored-By: Chen <email address hidden>
Change-Id: I2685eb65907adb d22b2d09264b110 692e100eaf9
Closes-Bug: #1758057