A couple minor fixes

This commit is contained in:
Adolfo Gómez 2014-04-08 09:02:18 +00:00
parent 10201bd976
commit 63fc505bee
2 changed files with 16 additions and 28 deletions

View File

@ -27,18 +27,6 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'''
Sample Service module.
This package simply shows how a new service can be implemented.
The first thing to do in every package that is a module is register the
class that is responsible of providing the module with the system.
For this, we must simply import the class at __init__, UDS will take care
of the rest
'''
from OVirtProvider import Provider

View File

@ -83,7 +83,7 @@ class Client(object):
lock.acquire(True)
return self.__getApi().test()
except Exception as e:
print e
logger.error('Testing Server failed: {0}'.format(e))
return False
finally:
lock.release()