Skip to content

Commit 46a2b11

Browse files
Merge pull request #1128 from acamacho82/issues872
#872 column 'name' was renamed to 'hostname'
2 parents 852d5e8 + 82f5c79 commit 46a2b11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

SoftLayer/CLI/report/bandwidth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def cli(env, start, end, sortby):
200200

201201
table = formatting.Table([
202202
'type',
203-
'name',
203+
'hostname',
204204
'public_in',
205205
'public_out',
206206
'private_in',

tests/CLI/modules/report_tests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,47 +96,47 @@ def test_bandwidth_report(self):
9696
stripped_output = '[' + result.output.split('[', 1)[1]
9797
self.assertEqual([
9898
{
99-
'name': 'pool1',
99+
'hostname': 'pool1',
100100
'pool': None,
101101
'private_in': 30,
102102
'private_out': 40,
103103
'public_in': 10,
104104
'public_out': 20,
105105
'type': 'pool',
106106
}, {
107-
'name': 'pool3',
107+
'hostname': 'pool3',
108108
'pool': None,
109109
'private_in': 30,
110110
'private_out': 40,
111111
'public_in': 10,
112112
'public_out': 20,
113113
'type': 'pool',
114114
}, {
115-
'name': 'host1',
115+
'hostname': 'host1',
116116
'pool': None,
117117
'private_in': 30,
118118
'private_out': 40,
119119
'public_in': 10,
120120
'public_out': 20,
121121
'type': 'virtual',
122122
}, {
123-
'name': 'host3',
123+
'hostname': 'host3',
124124
'pool': 2,
125125
'private_in': 30,
126126
'private_out': 40,
127127
'public_in': 10,
128128
'public_out': 20,
129129
'type': 'virtual',
130130
}, {
131-
'name': 'host1',
131+
'hostname': 'host1',
132132
'pool': None,
133133
'private_in': 30,
134134
'private_out': 40,
135135
'public_in': 10,
136136
'public_out': 20,
137137
'type': 'hardware',
138138
}, {
139-
'name': 'host3',
139+
'hostname': 'host3',
140140
'pool': None,
141141
'private_in': 30,
142142
'private_out': 40,

0 commit comments

Comments
 (0)