import math
from datetime import datetime
from functools import partial
+from typing import Any, Dict
import cherrypy
import rbd
@Endpoint()
@ReadPermission
def status(self):
- status = {'available': True, 'message': None}
+ status: Dict[str, Any] = {'available': True, 'message': None}
if not CephService.get_pool_list('rbd'):
status['available'] = False
status['message'] = 'No Block Pool is available in the cluster. Please click ' \
import re
from enum import IntEnum
from functools import partial
-from typing import NamedTuple, Optional, no_type_check
+from typing import Any, Dict, NamedTuple, Optional, no_type_check
import cherrypy
import rbd
@Endpoint()
@ReadPermission
def status(self):
- status = {'available': True, 'message': None}
+ status: Dict[str, Any] = {'available': True, 'message': None}
orch_status = OrchClient.instance().status()
# if the orch is not available we can't create the service