Remove six.text_type (1/2)
Replace six.text_type with str. A subsequent patch will replace other six.text_type. Change-Id: I23bb9e539d08f5c6202909054c2dd49b6c7a7a0e Implements: blueprint six-removal Signed-off-by: Takashi Natsume <takanattie@gmail.com>
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
from oslo_log import log as logging
|
||||
import oslo_messaging as messaging
|
||||
from oslo_utils import excutils
|
||||
import six
|
||||
|
||||
from nova import availability_zones
|
||||
from nova.compute import power_state
|
||||
@@ -533,8 +532,7 @@ class LiveMigrationTask(base.TaskBase):
|
||||
# Note(ShaoHe Feng) There are types of RemoteError, such as
|
||||
# NoSuchMethod, UnsupportedVersion, we can distinguish it by
|
||||
# ex.exc_type.
|
||||
raise exception.MigrationSchedulerRPCError(
|
||||
reason=six.text_type(ex))
|
||||
raise exception.MigrationSchedulerRPCError(reason=str(ex))
|
||||
|
||||
scheduler_utils.fill_provider_mapping(request_spec, selection)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user