Skip to content
Snippets Groups Projects
Commit 5f9e2f21 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Handle Unknown OSes

Mark them as unsupported but allow the user to upload and register
them.
parent 10be7034
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011-2014 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
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""This module hosts code to handle unknown OSes."""
from image_creator.os_type.unsupported import Unsupported
class Unknown(Unsupported):
"""OS class for Unknown OSes"""
def __init__(self, image, **kwargs):
super(Unsupported, self).__init__(image, **kwargs)
self.image.set_unsupported("Unknown Operating System")
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment