def variables(self): if self.want.variables is None: return None if self.have.variables is None: return dict( variables=self.want.variables ) result = dict() different = compare_dictionary(self.want.variables, self.have.variables) if not different: return None for k, v in iteritems(self.want.variables): if k in self.have.variables and v != self.have.variables[k]: result[k] = v elif k not in self.have.variables: result[k] = v for k, v in iteritems(self.have.variables): if k not in self.want.variables: result[k] = "none" if result: result = dict( variables=result ) return result
def network_publisher(self): result = compare_dictionary(self.want.network_publisher, self.have.network_publisher) return result
def sip_publisher(self): result = compare_dictionary(self.want.sip_publisher, self.have.sip_publisher) return result
def port_log_publisher(self): result = compare_dictionary(self.want.port_log_publisher, self.have.port_log_publisher) return result