Stefan Caraiman 9ddb45127b Fix misspelled classname in posix
Whenever the get_os_utils is called on a unix system, it will try to load the PosixUtils class,
but the name of the class is misspelled as PoxixUtil, therefore not being able to find it.

Change-Id: Ia9b67527b7af3282e3c4658fbfd22fae28b7e2e7
2016-07-27 13:19:00 +03:00

24 lines
755 B
Python

# Copyright 2012 Cloudbase Solutions Srl
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os
from cloudbaseinit.osutils import base
class PosixUtils(base.BaseOSUtils):
def reboot(self):
os.system('reboot')