Commit 06a774a5 authored by Seblu's avatar Seblu
Browse files

RemoteCommand needs to set a non-empty list of remote functions

parent bd6f0ae1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)