zun/nova/virt/hostutils.py
Hongbin Lu c419ebe0cf Remove windows support from Nova driver
The windows support was added to nova-docker in before [1]. However,
it seems the Zun team doesn't have an maintainer of codes in this
part, so let's remove it for now.

[1] https://review.openstack.org/#/c/219657/

Change-Id: I7f7de5ea920b69e6a79d624ae7e0e0f79e69853c
2016-12-02 10:27:44 -06:00

23 lines
781 B
Python

# Copyright (c) 2014 Docker, Inc.
# All Rights Reserved.
#
# 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.
from nova import utils
def sys_uptime():
"""Returns the host uptime."""
out, err = utils.execute('env', 'LANG=C', 'uptime')
return out