Do not add directory prefix to added modules
Adding a prefix here results in adding it twice later which fails builds that are
executed in a directory not being the same as image.yaml.
@@ -133,7 +133,7 @@ class Descriptor(object):
# If a directory called 'modules' is found next to the image descriptor
# scan it for modules.
if os.path.isdir(local_modules_path):
- repositories.append({'path': local_modules_path, 'name': 'modules'})
+ repositories.append({'path': 'modules', 'name': 'modules'})
modules['repositories'] = repositories
self.descriptor['modules'] = modules
