From f6b10157f755e498ca110303f1d30cec472c893f Mon Sep 17 00:00:00 2001 From: david Date: Mon, 6 Jul 2009 22:27:53 +0000 Subject: [PATCH] Fix a bug: in deciding whenther to print the diff for a port, a port in host B was being check to see if it was an extraport in host A. --- ndiff/ndiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndiff/ndiff b/ndiff/ndiff index c9146fce5..6c733f58e 100755 --- a/ndiff/ndiff +++ b/ndiff/ndiff @@ -519,7 +519,7 @@ class HostDiff(object): else: if not host_a.is_extraports(port_a.state): port_table.append((u"-", port_a.spec_string(), port_a.state_string(), port_a.service.name_string(), port_a.service.version_string())) - if not host_a.is_extraports(port_b.state): + if not host_b.is_extraports(port_b.state): port_table.append((u"+", port_b.spec_string(), port_b.state_string(), port_b.service.name_string(), port_b.service.version_string())) if len(port_table) > 1: