import logging
import threading
-from typing import Tuple
+from typing import Tuple, Optional, List
-from mgr_module import MgrModule, CLICommand
+from mgr_module import MgrModule, CLICommand, Option
import orchestrator
from .export import ExportMgr
class Module(orchestrator.OrchestratorClientMixin, MgrModule):
- MODULE_OPTIONS = []
+ MODULE_OPTIONS: List[Option] = []
def __init__(self, *args, **kwargs):
self.inited = False
return self.nfs.list_nfs_cluster()
@CLICommand('nfs cluster info', perm='r')
- def _cmd_nfs_cluster_info(self, clusterid: str = None) -> Tuple[int, str, str]:
+ def _cmd_nfs_cluster_info(self, clusterid: Optional[str] = None) -> Tuple[int, str, str]:
"""Displays NFS Cluster info"""
return self.nfs.show_nfs_cluster_info(cluster_id=clusterid)