]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Assign rackspace server name from physical_resource_name.
authorSteve Baker <sbaker@redhat.com>
Sun, 28 Jul 2013 20:43:17 +0000 (08:43 +1200)
committerSteve Baker <sbaker@redhat.com>
Tue, 30 Jul 2013 22:56:26 +0000 (10:56 +1200)
commit161cb2e6940e5a05b99a7e836bca2debc71da2a9
treeb2658a79bca02e44ee730ca615be5a705c5f950d
parentae38d4583a4ba5e2f509a10e4e403e433e10a17e
Assign rackspace server name from physical_resource_name.

The default implementation of physical_resource_name() assigns a name
which includes some context and randomness.

physical_resource_name() is overridden to optionally allow the 'name'
property to specify the physical name. The same technique is used in
OS::Swift::Container, and 'name' matches the property in the underlying
Nova API.

Change-Id: I5769513a4461d5067dca516d0f03e02bb444f379
heat/engine/resources/rackspace/cloud_server.py
heat/tests/test_rackspace_cloud_server.py