from typing import Optional, List, Dict, Any
except ImportError:
pass
-import six
class DeviceSelection(object):
for key in ('block_wal_size', 'block_db_size', 'journal_size'):
if key in json_drive_group:
- if isinstance(json_drive_group[key], six.string_types):
+ if isinstance(json_drive_group[key], str):
from ceph.deployment.drive_selection import SizeMatcher
json_drive_group[key] = SizeMatcher.str_to_byte(json_drive_group[key])
if not self.service_id:
raise DriveGroupValidationError('service_id is required')
- if not isinstance(self.placement.host_pattern, six.string_types) and \
+ if not isinstance(self.placement.host_pattern, str) and \
self.placement.host_pattern is not None:
raise DriveGroupValidationError('host_pattern must be of type string')
from functools import wraps
from typing import Optional, Dict, Any, List, Union, Callable, Iterator
-import six
import yaml
from ceph.deployment.hostspec import HostSpec
try:
# if subnets are defined, also verify the validity
if '/' in network:
- ip_network(six.text_type(network))
+ ip_network(network)
else:
- ip_address(six.text_type(network))
+ ip_address(network)
except ValueError as e:
# logging?
raise e
keywords='ceph',
url="https://github.com/ceph/ceph",
zip_safe = False,
- install_requires=(
- 'six',
- ),
classifiers = [
'Intended Audience :: Developer',
'Operating System :: POSIX :: Linux',