Skip to content

Commit 96d50fc

Browse files
Merge pull request #1724 from BrianSantivanez/issue1723
slcli hardware reflash-firmware command does not display success message
2 parents 78585f3 + 884e7c9 commit 96d50fc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

SoftLayer/CLI/hardware/reflash_firmware.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ def cli(env, identifier):
2323
'reflash device firmware. Continue?' % hw_id)):
2424
raise exceptions.CLIAbort('Aborted.')
2525

26-
mgr.reflash_firmware(hw_id)
26+
if mgr.reflash_firmware(hw_id):
27+
click.echo('Successfully device firmware reflashed')

tests/CLI/modules/server_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def test_reflash_firmware(self, confirm_mock):
523523
result = self.run_command(['server', 'reflash-firmware', '1000'])
524524

525525
self.assert_no_fail(result)
526-
self.assertEqual(result.output, "")
526+
self.assertEqual(result.output, 'Successfully device firmware reflashed\n')
527527
self.assert_called_with('SoftLayer_Hardware_Server',
528528
'createFirmwareReflashTransaction',
529529
args=((1, 1, 1)), identifier=1000)

0 commit comments

Comments
 (0)