Merge pull request #76 from Mirantis/cgenie/various-fixes
Remove duplicated code in virtual_resource.py
This commit is contained in:
commit
3be426790c
@ -27,10 +27,6 @@ def create_resource(name, base_path, args, virtual_resource=None):
|
|||||||
|
|
||||||
prepare_meta(metadata)
|
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', [])
|
tags = metadata.get('tags', [])
|
||||||
|
|
||||||
resource = Resource(name, metadata, args, tags, virtual_resource)
|
resource = Resource(name, metadata, args, tags, virtual_resource)
|
||||||
|
Loading…
Reference in New Issue
Block a user