diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/pluginbase.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/wic/pluginbase.py b/scripts/lib/wic/pluginbase.py index 07ccf622f4..743170a5fa 100644 --- a/scripts/lib/wic/pluginbase.py +++ b/scripts/lib/wic/pluginbase.py | |||
@@ -21,6 +21,8 @@ import logging | |||
21 | 21 | ||
22 | from collections import defaultdict | 22 | from collections import defaultdict |
23 | 23 | ||
24 | from wic import WicError | ||
25 | |||
24 | logger = logging.getLogger('wic') | 26 | logger = logging.getLogger('wic') |
25 | 27 | ||
26 | class PluginMeta(type): | 28 | class PluginMeta(type): |
@@ -35,6 +37,10 @@ class PluginMeta(type): | |||
35 | class ImagerPlugin(metaclass=PluginMeta): | 37 | class ImagerPlugin(metaclass=PluginMeta): |
36 | wic_plugin_type = "imager" | 38 | wic_plugin_type = "imager" |
37 | 39 | ||
40 | def do_create(self): | ||
41 | raise WicError("Method %s.do_create is not implemented" % | ||
42 | self.__class__.__name__) | ||
43 | |||
38 | class SourcePlugin(metaclass=PluginMeta): | 44 | class SourcePlugin(metaclass=PluginMeta): |
39 | wic_plugin_type = "source" | 45 | wic_plugin_type = "source" |
40 | """ | 46 | """ |