Loading cccli/commands.py +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ class Commands(object): cobj = self.cmds[cname](self.cli, cname) if isinstance(cobj, command.RemoteCommand): try: if len(cobj.remote_functions()) == 0: raise NotImplementedError("No remote function") if not cobj.remote_functions().issubset(self.functions): del self.cmds[cname] self.cli.printer.debug("Command %s not available"%cname) Loading Loading
cccli/commands.py +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ class Commands(object): cobj = self.cmds[cname](self.cli, cname) if isinstance(cobj, command.RemoteCommand): try: if len(cobj.remote_functions()) == 0: raise NotImplementedError("No remote function") if not cobj.remote_functions().issubset(self.functions): del self.cmds[cname] self.cli.printer.debug("Command %s not available"%cname) Loading