summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/pluginbase.py6
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
22from collections import defaultdict 22from collections import defaultdict
23 23
24from wic import WicError
25
24logger = logging.getLogger('wic') 26logger = logging.getLogger('wic')
25 27
26class PluginMeta(type): 28class PluginMeta(type):
@@ -35,6 +37,10 @@ class PluginMeta(type):
35class ImagerPlugin(metaclass=PluginMeta): 37class 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
38class SourcePlugin(metaclass=PluginMeta): 44class SourcePlugin(metaclass=PluginMeta):
39 wic_plugin_type = "source" 45 wic_plugin_type = "source"
40 """ 46 """