From 03adaf7cdefa5064a02c8484ae73f9a7716786f5 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kaminski Date: Thu, 27 Aug 2015 11:52:51 +0200 Subject: [PATCH] Remove duplicated code in virtual_resource.py --- solar/solar/core/resource/virtual_resource.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/solar/solar/core/resource/virtual_resource.py b/solar/solar/core/resource/virtual_resource.py index 8e2d3633..3601a9a9 100644 --- a/solar/solar/core/resource/virtual_resource.py +++ b/solar/solar/core/resource/virtual_resource.py @@ -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)