Browse Source

Merge "Allow plugins to return config options as list of tuples"

tags/2.0.0
Zuul 1 month ago
parent
commit
6dea050274
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      rally/common/opts.py

+ 5
- 1
rally/common/opts.py View File

@@ -56,7 +56,11 @@ def register_options_from_path(path):
56 56
             return
57 57
 
58 58
         options = list_func()
59
-        register_opts(options.items())
59
+
60
+        if isinstance(options, dict):
61
+            options = options.items()
62
+
63
+        register_opts(options)
60 64
         _registered_paths.append(path)
61 65
 
62 66
 

Loading…
Cancel
Save