1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-23 23:34:07 +03:00

fixes for python 3.x and removal of 2.7 stuff

This commit is contained in:
Adolfo Gómez García
2019-06-06 08:38:11 +02:00
parent 89515dce33
commit 36794ec5cf
13 changed files with 112 additions and 122 deletions

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (c) 2014 Virtual Cable S.L.
# Copyright (c) 2014-2019 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
@@ -30,13 +30,11 @@
"""
@author: Adolfo Gómez, dkmaster at dkmon dot com
"""
from __future__ import unicode_literals
import logging
from uds.core.util.Config import Config as cfgConfig
from uds.REST import Handler
import logging
logger = logging.getLogger(__name__)
@@ -46,7 +44,7 @@ REMOVED = {
'Cluster': ('Destination CPU Load', 'Migration CPU Load', 'Migration Free Memory'),
'IPAUTH': ('autoLogin',),
'VMWare': ('minUsableDatastoreGB', 'maxRetriesOnError'),
};
}
# Enclosed methods under /config path
@@ -75,7 +73,7 @@ class Config(Handler):
'type': cfg.getType(),
'params': cfg.getParams()
}
logger.debug('Configuration: {0}'.format(res))
logger.debug('Configuration: %s', res)
return res
def put(self):