diff options
Diffstat (limited to 'tempest/cmd/javelin.py')
-rwxr-xr-x | tempest/cmd/javelin.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tempest/cmd/javelin.py b/tempest/cmd/javelin.py index 3c41dd997..0adc7e0ee 100755 --- a/tempest/cmd/javelin.py +++ b/tempest/cmd/javelin.py @@ -20,6 +20,7 @@ resources in a declarative way. """ import argparse +import collections import datetime import os import sys @@ -43,7 +44,7 @@ from tempest.services.volume.json import volumes_client OPTS = {} USERS = {} -RES = {} +RES = collections.defaultdict(list) LOG = None @@ -282,6 +283,8 @@ class JavelinCheck(unittest.TestCase): If in check mode confirm that the oldest sample available is from before the upgrade. """ + if not self.res.get('telemetry'): + return LOG.info("checking telemetry") for server in self.res['servers']: client = client_for_user(server['owner']) @@ -508,6 +511,9 @@ def _get_volume_by_name(client, name): def create_volumes(volumes): + if not volumes: + return + LOG.info("Creating volumes") for volume in volumes: client = client_for_user(volume['owner']) @@ -630,7 +636,7 @@ def main(): global RES get_options() setup_logging() - RES = load_resources(OPTS.resources) + RES.update(load_resources(OPTS.resources)) if OPTS.mode == 'create': create_resources() |