amulet tests: resolve unit index issue per https://github.com/juju/amulet/issues/111

This commit is contained in:
Ryan Beisner 2015-12-16 15:18:35 +00:00
parent b18ed27078
commit 369f0914a6
1 changed files with 3 additions and 3 deletions

View File

@ -84,11 +84,11 @@ class HAClusterBasicDeployment(OpenStackAmuletDeployment):
def _initialize_tests(self):
"""Perform final initialization before tests get run."""
# Access the sentries for inspecting service units
self.mysql_sentry = self.d.sentry.unit['mysql/0']
self.keystone_sentry = self.d.sentry.unit['keystone/0']
self.mysql_sentry = self.d.sentry['mysql'][0]
self.keystone_sentry = self.d.sentry['keystone'][0]
# NOTE: the hacluster unit id may not correspond with its parent unit
# id.
self.hacluster_sentry = self.d.sentry.unit['hacluster/0']
self.hacluster_sentry = self.d.sentry['hacluster'][0]
u.log.debug('openstack release val: {}'.format(
self._get_openstack_release()))