Jean-Philippe Evrard 62c3a8025e Fix cinder role condition when no cinder_volumes
If there is no machine in the group cinder_volume, the condition
inventory_hostname in groups['cinder_volume'][0] will fail.

Because we run this role even when there is no cinder_volume defined,
this causes a failures for deployments with no cinder.

This commit is a short term fix until we properly document how to use
finer-grained groups instead of the generic os-infra_hosts for all the
services.

Closes-Bug: 1596918

Change-Id: I214a62f48befe7d5fd54c22b4b64c33e2c346629
Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
2016-07-13 10:09:47 +01:00
..