def __call__(self, srv_com, cur_ns): ctrl_type.update("lsi") if "arguments:arg0" in srv_com: ctrl_list = [srv_com["arguments:arg0"].text] else: ctrl_list = [] return ctrl_check_struct(self.log, srv_com, ctrl_type.ctrl("lsi"), ctrl_list)
def __call__(self, srv_com, cur_ns): ctrl_type.update("megaraid_sas") _ctrl = ctrl_type.ctrl("megaraid_sas") if _ctrl.update_ok(srv_com): return ctrl_check_struct(self.log, srv_com, _ctrl, [])