X-Git-Url: https://code.grnet.gr/git/snf-image-creator/blobdiff_plain/aa2062ba36d87b174fcea2a5daf6b987cdc9b61b..29fd973e0da4b1bf61f76a7809b67b18ef9db195:/image_creator/__init__.py diff --git a/image_creator/__init__.py b/image_creator/__init__.py index aec50d6..62ea6d9 100644 --- a/image_creator/__init__.py +++ b/image_creator/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2011 GRNET S.A. All rights reserved. +# Copyright 2012 GRNET S.A. All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following @@ -31,23 +31,6 @@ # interpreted as representing official policies, either expressed # or implied, of GRNET S.A. -__version__ = '0.1' - -import image_creator.os_type - -def get_os_class(distro, osfamily): - module = None - classname = None - try: - 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']) - classname = osfamily.capitalize() - - return getattr(module, classname) - +__version__ = '0.2.10' # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :