Commit fb378f89 authored by Nikos Skalkotos's avatar Nikos Skalkotos

Fix a bug in os_type.os_cls function

An OS was characterized as unknown if the distro was unknown even though
the osfamily was not unknown.
parent f37a43a2
# -*- coding: utf-8 -*-
# Copyright (C) 2011-2014 GRNET S.A.
# Copyright (C) 2011-2015 GRNET S.A.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -48,6 +48,8 @@ def os_cls(distro, osfamily):
distro = canonicalize(distro)
osfamily = canonicalize(osfamily)
if distro == 'unknown':
distro = osfamily
module = __import__("image_creator.os_type.%s" % distro,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment