Peter Krempa f46d6e22f2 util: storage: Parse 'lun' for iSCSI protocol from JSON as string or number
While the QEMU QAPI schema describes 'lun' as a number, the code dealing
with JSON strings does not strictly adhere to this schema and thus
formats the number back as a string. Use the new helper to retrieve both
possibilities.

Note that the formatting code is okay and qemu will accept it as an int.

Tweak also one of the test strings to verify that both formats work
with libvirt.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1540290
2018-01-31 12:22:25 +01:00
..
2017-11-20 13:22:48 +01:00
2018-01-18 15:04:18 +01:00
2018-01-11 14:23:09 +01:00
2017-11-20 13:22:48 +01:00
2017-04-27 14:13:19 +02:00
2017-04-11 13:23:01 +02:00
2018-01-25 17:16:08 +01:00
2016-12-06 13:34:00 +01:00
2017-11-03 13:24:12 +01:00
2017-07-26 15:35:02 +02:00
2016-06-14 08:25:25 +02:00
2017-11-03 13:24:12 +01:00
2017-11-22 11:27:40 +01:00
2017-07-26 15:33:45 +02:00
2017-04-27 14:13:19 +02:00
2017-11-24 11:47:26 -05:00
2017-11-03 13:24:12 +01:00
2018-01-25 17:16:08 +01:00
2016-09-14 13:18:07 +02:00
2016-08-24 17:43:29 +02:00
2017-10-05 09:09:50 +02:00