Merge pull request #76 from Mirantis/cgenie/various-fixes

Remove duplicated code in virtual_resource.py
This commit is contained in:
CGenie 2015-08-27 12:52:54 +02:00
commit 3be426790c

View File

@ -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)