Here is an example for the change for the serial number of a CPC (which was the original error reported in issue #391):
Incorrect output as floating point value with the master branch:
$ zhmc cpc list
+--------+----------+---------------+--------------+----------------+-----------------+-------------------------+
| name | status | dpm-enabled | se-version | machine-type | machine-model | machine-serial-number |
|--------+----------+---------------+--------------+----------------+-----------------+-------------------------|
| CPCA | active | True | 2.15.0 | 8562 | GT2 | 2.00406e+13 |
+--------+----------+---------------+--------------+----------------+-----------------+-------------------------+
Correct output with this PR:
$ zhmc cpc list
+--------+----------+---------------+--------------+----------------+-----------------+-------------------------+
| name | status | dpm-enabled | se-version | machine-type | machine-model | machine-serial-number |
|--------+----------+---------------+--------------+----------------+-----------------+-------------------------|
| CPCA | active | True | 2.15.0 | 8562 | GT2 | 0000200406E8 |
+--------+----------+---------------+--------------+----------------+-----------------+-------------------------+
Note that the fix also influenced the machine-type column which property-wise is a string and before the fix incorrectly was interpreted as an integer, which by default is right-aligned. With the fix, the property types returned by the HMC are now respected.
Coverage: 31.649%. Remained the same when pulling cfb8dbd438bfe62873cbc6c38519572568c83466 on andy/fix-exponential-serial into d29b807d779b852a724d4dbc4ef20ce990d7add3 on master.
Here is an example for the change for the serial number of a CPC (which was the original error reported in issue #391):
Incorrect output as floating point value with the master branch:
Correct output with this PR:
Note that the fix also influenced the machine-type column which property-wise is a string and before the fix incorrectly was interpreted as an integer, which by default is right-aligned. With the fix, the property types returned by the HMC are now respected.