switch logging to proper usage
[yardstick.git] / yardstick / benchmark / contexts / dummy.py
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 import logging
11
12 from yardstick.benchmark.contexts.base import Context
13
14
15 LOG = logging.getLogger(__name__)
16
17
18 class DummyContext(Context):
19     '''Class that handle dummy info'''
20
21     __context_type__ = "Dummy"
22
23     def __init__(self):
24         super(self.__class__, self).__init__()
25
26     def init(self, attrs):
27         pass
28
29     def deploy(self):
30         '''don't need to deploy'''
31         pass
32
33     def undeploy(self):
34         '''don't need to undeploy'''
35         pass
36
37     def _get_server(self, attr_name):
38         return None