module = None
classname = None
try:
- module = __import__("image_creator.os_type.%s"
- % distro, fromlist=['image_creator.os_type'])
+ module = __import__("image_creator.os_type.%s" % distro,
+ fromlist=['image_creator.os_type'])
classname = distro.capitalize()
except ImportError:
- module = __import__("image_creator.os_type.%s"
- % osfamily, fromlist=['image_creator.os_type'])
+ module = __import__("image_creator.os_type.%s" % osfamily,
+ fromlist=['image_creator.os_type'])
classname = osfamily.capitalize()
return getattr(module, classname)
def list_syspreps(self):
- objs = [getattr(self, name) for name in dir(self) \
- if not name.startswith('_')]
+ objs = [getattr(self, name) for name in dir(self)
+ if not name.startswith('_')]
return [x for x in objs if self._is_sysprep(x)]