Merge "Deprecate Windows OS support"
This commit is contained in:
commit
84fe1810c8
|
@ -13,6 +13,8 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
from os_win import utilsfactory
|
from os_win import utilsfactory
|
||||||
from oslo_concurrency import processutils as putils
|
from oslo_concurrency import processutils as putils
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
@ -33,6 +35,8 @@ class BaseWindowsConnector(initiator_connector.InitiatorConnector):
|
||||||
DEFAULT_DEVICE_SCAN_INTERVAL = 2
|
DEFAULT_DEVICE_SCAN_INTERVAL = 2
|
||||||
|
|
||||||
def __init__(self, root_helper=None, *args, **kwargs):
|
def __init__(self, root_helper=None, *args, **kwargs):
|
||||||
|
warnings.warn('Support for Windows OS has been deprecated.',
|
||||||
|
category=DeprecationWarning, stacklevel=2)
|
||||||
kwargs['executor'] = kwargs.get('executor') or putils.execute
|
kwargs['executor'] = kwargs.get('executor') or putils.execute
|
||||||
super(BaseWindowsConnector, self).__init__(root_helper,
|
super(BaseWindowsConnector, self).__init__(root_helper,
|
||||||
*args, **kwargs)
|
*args, **kwargs)
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import warnings
|
||||||
|
|
||||||
from os_win import utilsfactory
|
from os_win import utilsfactory
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
@ -35,6 +36,8 @@ class WindowsRemoteFsClient(remotefs.RemoteFsClient):
|
||||||
|
|
||||||
def __init__(self, mount_type, root_helper=None,
|
def __init__(self, mount_type, root_helper=None,
|
||||||
execute=None, *args, **kwargs):
|
execute=None, *args, **kwargs):
|
||||||
|
warnings.warn('Support for Windows OS has been deprecated.',
|
||||||
|
category=DeprecationWarning, stacklevel=2)
|
||||||
mount_type_to_option_prefix = {
|
mount_type_to_option_prefix = {
|
||||||
'cifs': 'smbfs',
|
'cifs': 'smbfs',
|
||||||
'smbfs': 'smbfs',
|
'smbfs': 'smbfs',
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
Support for Windows operating systems has been deprecated, because of
|
||||||
|
retirement of the Winstackers project.
|
Loading…
Reference in New Issue