From 0ebb1c8e0ca54bd25bc8ec2b313fbb3146e9a182 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 19 Jul 2020 17:40:12 +0800 Subject: [PATCH] pybind/mgr/cephadm: drop python2 support Signed-off-by: Kefu Chai --- src/pybind/mgr/cephadm/module.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 73459d3f2336..7e90404aad89 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -12,7 +12,6 @@ from typing import List, Dict, Optional, Callable, Tuple, TypeVar, \ Any, Set, TYPE_CHECKING, cast, Iterator import datetime -import six import os import random import tempfile @@ -135,8 +134,8 @@ def trivial_completion(f: Callable) -> Callable[..., CephadmCompletion]: return wrapper -@six.add_metaclass(CLICommandMeta) -class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule): +class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, + metaclass=CLICommandMeta): _STORE_HOST_PREFIX = "host" -- 2.47.3