File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -172,20 +172,6 @@ def wrapper(*args, **kwargs):
172
172
return wrapper
173
173
174
174
175
- def require_instance_exists_using_uuid (f ):
176
- """Decorator to require the specified instance to exist.
177
-
178
- Requires the wrapped function to use context and instance_uuid as
179
- their first two arguments.
180
- """
181
- @functools .wraps (f )
182
- def wrapper (context , instance_uuid , * args , ** kwargs ):
183
- instance_get_by_uuid (context , instance_uuid )
184
- return f (context , instance_uuid , * args , ** kwargs )
185
-
186
- return wrapper
187
-
188
-
189
175
def select_db_reader_mode (f ):
190
176
"""Decorator to select synchronous or asynchronous reader mode.
191
177
@@ -1578,7 +1564,6 @@ def virtual_interface_get_by_uuid(context, vif_uuid):
1578
1564
1579
1565
1580
1566
@require_context
1581
- @require_instance_exists_using_uuid
1582
1567
@pick_context_manager_reader_allow_async
1583
1568
def virtual_interface_get_by_instance (context , instance_uuid ):
1584
1569
"""Gets all virtual interfaces for instance.
You can’t perform that action at this time.
0 commit comments