Remove duplicated code in virtual_resource.py
This commit is contained in:
parent
e00003a53f
commit
03adaf7cde
@ -27,10 +27,6 @@ def create_resource(name, base_path, args, virtual_resource=None):
|
||||
|
||||
prepare_meta(metadata)
|
||||
|
||||
if os.path.exists(actions_path):
|
||||
for f in os.listdir(actions_path):
|
||||
metadata['actions'][os.path.splitext(f)[0]] = f
|
||||
|
||||
tags = metadata.get('tags', [])
|
||||
|
||||
resource = Resource(name, metadata, args, tags, virtual_resource)
|
||||
|
Loading…
Reference in New Issue
Block a user