From 82f5c79b31d30bb1f46a3f85b6729026ae7cfff4 Mon Sep 17 00:00:00 2001 From: "Albert J. Camacho" Date: Fri, 5 Apr 2019 16:06:08 -0400 Subject: [PATCH] 872 Column 'name' renamed to 'hostname' --- SoftLayer/CLI/report/bandwidth.py | 2 +- tests/CLI/modules/report_tests.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SoftLayer/CLI/report/bandwidth.py b/SoftLayer/CLI/report/bandwidth.py index 47f9fdbc1..f7f28e00c 100644 --- a/SoftLayer/CLI/report/bandwidth.py +++ b/SoftLayer/CLI/report/bandwidth.py @@ -200,7 +200,7 @@ def cli(env, start, end, sortby): table = formatting.Table([ 'type', - 'name', + 'hostname', 'public_in', 'public_out', 'private_in', diff --git a/tests/CLI/modules/report_tests.py b/tests/CLI/modules/report_tests.py index f57d87120..3d580edad 100644 --- a/tests/CLI/modules/report_tests.py +++ b/tests/CLI/modules/report_tests.py @@ -96,7 +96,7 @@ def test_bandwidth_report(self): stripped_output = '[' + result.output.split('[', 1)[1] self.assertEqual([ { - 'name': 'pool1', + 'hostname': 'pool1', 'pool': None, 'private_in': 30, 'private_out': 40, @@ -104,7 +104,7 @@ def test_bandwidth_report(self): 'public_out': 20, 'type': 'pool', }, { - 'name': 'pool3', + 'hostname': 'pool3', 'pool': None, 'private_in': 30, 'private_out': 40, @@ -112,7 +112,7 @@ def test_bandwidth_report(self): 'public_out': 20, 'type': 'pool', }, { - 'name': 'host1', + 'hostname': 'host1', 'pool': None, 'private_in': 30, 'private_out': 40, @@ -120,7 +120,7 @@ def test_bandwidth_report(self): 'public_out': 20, 'type': 'virtual', }, { - 'name': 'host3', + 'hostname': 'host3', 'pool': 2, 'private_in': 30, 'private_out': 40, @@ -128,7 +128,7 @@ def test_bandwidth_report(self): 'public_out': 20, 'type': 'virtual', }, { - 'name': 'host1', + 'hostname': 'host1', 'pool': None, 'private_in': 30, 'private_out': 40, @@ -136,7 +136,7 @@ def test_bandwidth_report(self): 'public_out': 20, 'type': 'hardware', }, { - 'name': 'host3', + 'hostname': 'host3', 'pool': None, 'private_in': 30, 'private_out': 40,