We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207afab commit 0e192c9Copy full SHA for 0e192c9
watcher/target_type_uri_strategy.py
@@ -224,6 +224,7 @@ def __init__(self):
224
}
225
regex_mapping = {
226
'flavors/[^/|$]+': 'flavors/flavor',
227
+ 'servers/[^/|$]+': 'servers/server',
228
229
super(NovaTargetTypeURIStrategy, self).__init__(
230
name='nova',
@@ -267,10 +268,14 @@ def __init__(self):
267
268
'os-quota-class-sets': 'class',
269
'os-quota-sets': 'quota',
270
271
+ regex_mapping = {
272
+ 'volumes/[^/|$]+': 'volumes/volume',
273
+ }
274
super(CinderTargetTypeURIStrategy, self).__init__(
275
name='cinder',
276
prefix='service/storage/block',
- mapping=mapping
277
+ mapping=mapping,
278
+ regex_mapping=regex_mapping
279
)
280
281
0 commit comments