-
Pavel Hrdina authored
D-Bus object path element can contain only [a-zA-Z0-9_] characters so we need to encode existing unique IDs. In case of UUID it's simple, we just change '-' into '_' but in case of storage volumes we need to use 'key' which is arbitrary string. This helpers encode the string using this algorithm: [a-zA-Z0-9] > [a-zA-Z0-9] anything else > _XX where XX is hex representation Reviewed-by: Katerina Koukiou <kkoukiou@redhat.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
1bf3bf19