diff --git a/clients/dns-service-client/src/diff.rs b/clients/dns-service-client/src/diff.rs index a69433c885..56986c0bb9 100644 --- a/clients/dns-service-client/src/diff.rs +++ b/clients/dns-service-client/src/diff.rs @@ -138,7 +138,7 @@ impl<'a> std::fmt::Display for DnsDiff<'a> { if !names_changed { writeln!(f, " DNS zone: {:?} (unchanged)", zone_name,)?; } else { - writeln!(f, "~ DNS zone: {:?}: ", zone_name)?; + writeln!(f, "* DNS zone: {:?}: ", zone_name)?; } let print_records = |f: &mut std::fmt::Formatter<'_>, @@ -148,7 +148,7 @@ impl<'a> std::fmt::Display for DnsDiff<'a> { for r in records.iter() { writeln!( f, - " {} {}", + "{} {}", prefix, match r { DnsRecord::A(addr) => format!("A {}", addr), @@ -168,7 +168,7 @@ impl<'a> std::fmt::Display for DnsDiff<'a> { NameDiff::Added(name, records) => { writeln!( f, - " + name: {:50} (records: {})", + "+ name: {:50} (records: {})", name, records.len() )?; @@ -177,7 +177,7 @@ impl<'a> std::fmt::Display for DnsDiff<'a> { NameDiff::Removed(name, records) => { writeln!( f, - " - name: {:50} (records: {})", + "- name: {:50} (records: {})", name, records.len() )?; @@ -195,7 +195,7 @@ impl<'a> std::fmt::Display for DnsDiff<'a> { NameDiff::Changed(name, records1, records2) => { writeln!( f, - " ~ name: {:50} (records: {} -> {})", + "* name: {:50} (records: {} -> {})", name, records1.len(), records2.len(), diff --git a/clients/dns-service-client/tests/output/diff_example_different.out b/clients/dns-service-client/tests/output/diff_example_different.out index 6b64cddcd9..7f2f73fed6 100644 --- a/clients/dns-service-client/tests/output/diff_example_different.out +++ b/clients/dns-service-client/tests/output/diff_example_different.out @@ -1,8 +1,8 @@ -~ DNS zone: "dummy": - - name: ex1 (records: 1) - - A 127.0.0.1 - ~ name: ex2 (records: 1 -> 1) - - A 192.168.1.3 - + A 192.168.1.4 - + name: ex3 (records: 1) - + A 127.0.0.1 +* DNS zone: "dummy": +- name: ex1 (records: 1) +- A 127.0.0.1 +* name: ex2 (records: 1 -> 1) +- A 192.168.1.3 ++ A 192.168.1.4 ++ name: ex3 (records: 1) ++ A 127.0.0.1 diff --git a/clients/dns-service-client/tests/output/diff_example_different_reversed.out b/clients/dns-service-client/tests/output/diff_example_different_reversed.out index 9537f72fa6..ba52d4720c 100644 --- a/clients/dns-service-client/tests/output/diff_example_different_reversed.out +++ b/clients/dns-service-client/tests/output/diff_example_different_reversed.out @@ -1,8 +1,8 @@ -~ DNS zone: "dummy": - + name: ex1 (records: 1) - + A 127.0.0.1 - ~ name: ex2 (records: 1 -> 1) - - A 192.168.1.4 - + A 192.168.1.3 - - name: ex3 (records: 1) - - A 127.0.0.1 +* DNS zone: "dummy": ++ name: ex1 (records: 1) ++ A 127.0.0.1 +* name: ex2 (records: 1 -> 1) +- A 192.168.1.4 ++ A 192.168.1.3 +- name: ex3 (records: 1) +- A 127.0.0.1